suite-flipper-js
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
4774
0
35