1.0.8 • Published 7 years ago

feature-flagons v1.0.8

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

Feature Flagons

A small library for ab testing based on a random number percentage.

npm install feature-flagons

usage

import AutoComplete from 'feature-flagons';

new FF('test-feature', {
    variants: {
        default: {
            css: '/base/test/mocks/default.css',
            js: '/base/test/mocks/default.js',
            percent: 0.1
        },
        one: {
            css: '/base/test/mocks/one.css',
            js: '/base/test/mocks/one.js',
            percent: 0.4
        },
        two: {
            css: '/base/test/mocks/two.css',
            js: '/base/test/mocks/two.js',
            percent: 0.4
        }
    },
    condition: true, // (optional) condition on whether to execute.
    force: 'one' // overrides the percentage and foces this variant to load.
}
1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago