Neanderthal Pudding Mix

    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

    Install

    npm i togglify-js

    DownloadsWeekly Downloads

    3

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    3.89 kB

    Total Files

    7

    Last publish

    Collaborators

    • ismailnguyen