dcdr
v2.0.0
Published
VSCO's DCDR (Decider) package for Node.js
Downloads
2
Keywords
Readme
dcdr-js
VSCO’s DCDR (Decider) package for Node.js
Overview
Decider is a feature flag system with adaptable backends. Read more on the DCDR repo.
Example
var dcdr = require('dcdr');
dcdr.init({ dcdr: { path: '/etc/dcdr/decider.json' } });
if (dcdr.isAvailable('enable_feature')) {
console.log('feature enabled');
} else {
console.log('feature disabled');
}
Release
Since we host this package on npm, there are a few steps to follow in order to do a release.
- Decide the release type. We follow the semantic versioning (semver) standard. Is it a patch, minor, or major release?
- Run
npm version <release_type>
. This updates theversion
number inpackage.json
. - Run
script/release
. - Fill out the release notes. What changed?
- Run
npm publish
. See the docs for more info.