Socket
Socket
Sign inDemoInstall

suite-flipper-js

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

suite-flipper-js

Flipper Class


Version published
Maintainers
2
Created
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

Package last updated on 19 Apr 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc