
Security News
Security Community Slams MIT-linked Report Claiming AI Powers 80% of Ransomware
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.
feature-flipper
Advanced tools
Another feature flipper module
TODO: Fill out this long description.
npm install --save feature-flipper
const Flipper = require('feature-flipper');
const flip = new Flipper();
// Lets add a feature
flip.set('somefeature', false);
// Use the set method to change the status of a feature
flip.set('somefeature', true);
// To check if a feature is enabled
console.log( flip.isEnabled('somefeature') ); // true
// To flip the status of the feature
flip.flip('somefeature')
console.log( flip.isEnabled('somefeature') ); // false
// To remove the feature
flip.remove('somefeature');
// If you have your feature set in a seperate json object / file you can load them in
const featureSet = {
	somefeature: true,
	someOtherFeature: false
};
flip.load(featureSet);
console.log( flip.isEnabled('someOtherFeature') ); // false
TODO: Fill out API specification.
This module can be used to enable/disable endpoints in your restify/express like http server with a middleware like the following.
function flipMW(feature) {
	return function(req, res, next) {
		if(flip.isEnabled(feature)) {
			return next();
		} else {
			return res.send(403);
		}
	}
}
server.get('/somefeature', [
	flipMW('somefeature'),
	(req, res, next) => {
		res.send('somefeature endpoint');
		return next();
	}
]);
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
MIT © 2017 Rolf Koenders
FAQs
Another feature flipping module
We found that feature-flipper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.