togglify-js

1.0.3 • Public • Published

togglify-js

Javascript feature toggler

Install

npm install togglify-js

Usage

import Togglify from 'togglify-js';

const featureName = 'poo feature';
const featuresRepository = [
  {
    name: 'poo feature',
    isEnabled: true
  }
];
const toggler = new Togglify(featuresRepository);

const isFeatureEnabled = toggler.isOn(featureName); // Tell if the feature 'poo feature' is enabled or not

Tests

npm run test

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i togglify-js

    Weekly Downloads

    1

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    3.89 kB

    Total Files

    7

    Last publish

    Collaborators

    • ismailnguyen