https://github.com/vsco/dcdr-js
VSCO's Decider package for Node.js
https://github.com/vsco/dcdr-js
Last synced: 12 months ago
JSON representation
VSCO's Decider package for Node.js
- Host: GitHub
- URL: https://github.com/vsco/dcdr-js
- Owner: vsco
- License: mit
- Created: 2016-03-07T17:44:00.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-04-17T02:18:47.000Z (about 3 years ago)
- Last Synced: 2025-06-09T17:14:56.877Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://npmjs.com/dcdr
- Size: 297 KB
- Stars: 1
- Watchers: 24
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dcdr-js
VSCO's [DCDR](https://github.com/vsco/dcdr) (Decider) package for Node.js
## Overview
Decider is a [feature flag](https://en.wikipedia.org/wiki/Feature_toggle) system with adaptable backends. Read more on the [DCDR](https://github.com/vsco/dcdr#dcdr-decider) repo.
## Example
```js
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.
1. Decide the release type. We follow the [semantic versioning](https://docs.npmjs.com/getting-started/semantic-versioning#semver-for-publishers) (semver) standard. Is it a patch, minor, or major release?
2. Run `npm version `. This updates the `version` number in `package.json`.
3. Run `script/release`.
4. Fill out the release notes. What changed?
5. Run `npm publish`. See the [docs](https://docs.npmjs.com/getting-started/publishing-npm-packages) for more info.