Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

suite-flipper-js

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

suite-flipper-js - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

package.json
{
"name": "suite-flipper-js",
"version": "1.0.0",
"version": "1.0.1",
"description": "Flipper Class",
"main": "lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "mocha test"
},

@@ -9,0 +9,0 @@ "browserify": {

@@ -1,1 +0,34 @@

# flipper-js
# 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 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
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