FeaturevisorFeaturevisor

SDKs

Browser SDK

You can use the same Featurevisor JavaScript SDK in browser environments as well.

Installation

Install with npm:

$ npm install --save @featurevisor/sdk

API

Please find the full API docs in JavaScript SDK page.

Polyfills

fetch

Featurevisor JavaScript SDK relies on fetch API for fetching datafiles.

If you need to support older browsers, you can use whatwg-fetch.

You can install it with npm:

$ npm install --save whatwg-fetch

And then import or require() it in your code:

import "whatwg-fetch";

TextEncoder

Featurevisor SDK uses TextEncoder API for encoding strings.

if you need to support very old browsers, you can consider using fastestsmallesttextencoderdecoder.

You can install it with npm:

$ npm install --save fastestsmallesttextencoderdecoder

And then import or require() it in your code:

import "fastestsmallesttextencoderdecoder";
Previous
Node.js