Installation
Prerequisites
NodeJS | Deno |
---|---|
- Your server/device must have an access to the internet. - Node.js: version 6.0.0 or later - NPM: version 3.0.0 or later | - Your server/device must have an access to the internet. - Deno: 1.10.3 or later |
Installation Guide
NodeJS
You can add the SDK as a dependency using NPM or YARN
yarn add @flagship.io/js-sdk
npm install @flagship.io/js-sdk
CDN
You can also install via a CDN
<script src="https://cdn.jsdelivr.net/npm/@flagship.io/js-sdk/dist/index.browser.js"></script>
Deno
For Deno, there are 2 methods:
- Use URLs for dependency management, just add the deno.land URL
import { Flagship } from "https://deno.land/x/flagship_io_js_sdk/mod.ts";
- Or use import maps
{
"imports": {
"@flagship.io/js-sdk": "https://deno.land/x/flagship_io_js_sdk/mod.ts"
}
}
Updated 5 months ago