Skip to content

vsco/dcdr-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
iconshocking
Oct 28, 2022
65663c2 · Oct 28, 2022

History

32 Commits
Jun 10, 2020
Sep 20, 2016
Oct 28, 2022
Sep 19, 2016
Sep 19, 2016
Oct 28, 2022
Sep 19, 2016
Jun 10, 2020
Oct 28, 2022
Oct 28, 2022
Oct 28, 2022

Repository files navigation

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.

  1. Decide the release type. We follow the semantic versioning (semver) standard. Is it a patch, minor, or major release?
  2. Run npm version <release_type>. 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 for more info.