{"id":28534941,"url":"https://github.com/vsco/dcdr-js","last_synced_at":"2025-07-07T22:30:42.070Z","repository":{"id":11182027,"uuid":"53345764","full_name":"vsco/dcdr-js","owner":"vsco","description":"VSCO's Decider package for Node.js","archived":false,"fork":false,"pushed_at":"2023-04-17T02:18:47.000Z","size":304,"stargazers_count":1,"open_issues_count":6,"forks_count":1,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-06-09T17:14:56.877Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npmjs.com/dcdr","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vsco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-07T17:44:00.000Z","updated_at":"2023-11-20T21:11:18.000Z","dependencies_parsed_at":"2023-01-11T18:02:58.817Z","dependency_job_id":null,"html_url":"https://github.com/vsco/dcdr-js","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/vsco/dcdr-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsco%2Fdcdr-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsco%2Fdcdr-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsco%2Fdcdr-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsco%2Fdcdr-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vsco","download_url":"https://codeload.github.com/vsco/dcdr-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsco%2Fdcdr-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264154766,"owners_count":23565229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-09T17:13:27.656Z","updated_at":"2025-07-07T22:30:42.055Z","avatar_url":"https://github.com/vsco.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dcdr-js\n\nVSCO's [DCDR](https://github.com/vsco/dcdr) (Decider) package for Node.js\n\n## Overview\n\nDecider 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.\n\n## Example\n\n```js\nvar dcdr = require('dcdr');\n\ndcdr.init({ dcdr: { path: '/etc/dcdr/decider.json' } });\n\nif (dcdr.isAvailable('enable_feature')) {\n  console.log('feature enabled');\n} else {\n  console.log('feature disabled');\n}\n```\n\n## Release\n\nSince we host this package on npm, there are a few steps to follow in order to do a release.\n\n1. 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?\n2. Run `npm version \u003crelease_type\u003e`. This updates the `version` number in `package.json`.\n3. Run `script/release`.\n4. Fill out the release notes. What changed?\n5. Run `npm publish`. See the [docs](https://docs.npmjs.com/getting-started/publishing-npm-packages) for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsco%2Fdcdr-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvsco%2Fdcdr-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsco%2Fdcdr-js/lists"}