1.5.0 • Published 4 years ago

@fluffy-spoon/optimizely v1.5.0

Weekly downloads
4
License
ISC
Repository
-
Last release
4 years ago

This is an Optimizely Rollouts datafile parser that doesn't rely on any third party packages - it just parses the JSON in the datafile.

Usage

import OptimizelyParser from '@fluffy-spoon/optimizely';

var datafile = "insert datafile JSON string here";
var parser = new OptimizelyParser(datafile);

var isCachingFeatureEnabled = parser.isFeatureEnabled("Caching", "my user id here", {
    additional_custom_attributes_go_here: "foo"
});

But why?

This library is particularly useful in environments like Appcelerator's Titanium where NPM packages can't be used directly.

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago