Skip to content

Instantly share code, notes, and snippets.

@noahrc
Last active September 5, 2018 15:14
Show Gist options
  • Save noahrc/6c08bc442cd9b31d93cfcc5763077d70 to your computer and use it in GitHub Desktop.
Save noahrc/6c08bc442cd9b31d93cfcc5763077d70 to your computer and use it in GitHub Desktop.
Example of a feature toggle
{
"featureToggles": {
"releaseTheKraken": true,
}
}
import { featureToggles } from "./config.json"
if (featureToggles.releaseTheKraken) {
// Release the Kraken!
}
else {
// The Kraken isn't ready yet...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment