VSCO's DCDR (Decider) package for Node.js
Decider is a feature flag system with adaptable backends. Read more on the DCDR repo.
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');
}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 theversionnumber inpackage.json. - Run
script/release. - Fill out the release notes. What changed?
- Run
npm publish. See the docs for more info.