open-index/open-npm huggingface dataset:
npm package: @lemonway/hosted-fields-sdk
Description: ## Installation
Latest version: 2.0.4

# SDK

## Installation

### ESM (ES Modules)

```bash
npm i @lemonway/hosted-fields-sdk
```

### IIFE (Immediately Invoked Function Expression)

Include via CDN:

```html
<script src="https://unpkg.com/@lemonway/hosted-fields-sdk"></script>
```

or

```html
<script src="https://cdn.jsdelivr.net/npm/@lemonway/hosted-fields-sdk"></script>
```

### UMD (Universal Module Definition)

Include via CDN with latest version:

```html
<script src="https://unpkg.com/@lemonway/hosted-fields-sdk/dist/index.umd.js"></script>
```

or

```html
<script src="https://cdn.jsdelivr.net/npm/@lemonway/hosted-fields-sdk/dist/index.umd.js"></script>
```

For a specific version just specify the version in the link */@lemonway/**hosted-fields-sdk**/dist* -> */@lemonway/**hosted-fields-sdk@2.2.0**/dist*

## Usage

After installation, you can import and use the SDK:

```javascript
import LwHostedFields from '@lemonway/hosted-fields-sdk';

// Initialize and configure the SDK
const hostedFields = new LwHostedFields({
  // your configuration
});

// Mount the hosted fields
hostedFields.mount();
```