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

creature-features

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

creature-features - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "creature-features",
"version": "2.0.0",
"version": "2.0.1",
"description": "Feature flags for node.js",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -37,2 +37,18 @@ # Creature Features

```
### In Webpack
```
const features = require('creature-features')();
const webpack = require('webpack');
const featureFlags = new webpack.DefinePlugin({
FEATURES: features
});
module.exports = {
plugins: [featureFlags],
...
// in a ui file
if (FEATURES.FeatureOne)
```
### Why?

@@ -39,0 +55,0 @@ * [They are useful](http://code.flickr.net/2009/12/02/flipping-out/)

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