Socket
Socket
Sign inDemoInstall

suite-flipper-js

Package Overview
Dependencies
0
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    suite-flipper-js

Flipper Class


Version published
Weekly downloads
23
decreased by-32.35%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

Suite Flipper JS

Install

npm install --save suite-flipper-js

Usage

var flipper = Flipper.create(['bi', 'dummy', 'dummy2']);

flipper.isOn('bi'); //true
flipper.isOn('notInTheList'); //false
flipper.isOff('bi'); //false
flipper.isOff('notInTheList'); //true

Usage from service api response

var flipper = Flipper.createForApiResponse([
  { id: 'bi', isOn: true },
  { id: 'dummy', isOn: true },
  { id: 'dummy2', isOn: false }
]);

flipper.isOn('bi'); //true
flipper.isOn('dummy2'); //false
flipper.isOn('notInTheList'); //false
flipper.isOff('bi'); //false
flipper.isOff('dummy2'); //true
flipper.isOff('notInTheList'); //true

Usage in Angular Js

There is a wrapper for this class to use with angularJS

FAQs

Last updated on 19 Apr 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc