Kerosene Feature Flags
A simple assertion style feature flag for use in CI/CD deployment pipelines, especially well suited to monorepos and Trunk Based Development.
Feature Flags give you the ability to safely enable features in different environments, and for specific cohorts of people.
yarn add @kablamo/kerosene-feature-flags
With a Kerosene Feature Flag you define a flag as an assertion of conditions, and their expected values.
When you want to use the flags in your application, you import them, and execute them as a function, passing in an object with runtime information.
;;if flags.FEATURE123runtimeelse// output:// New featureif flags.FEATURE42runtimeelse// output:// Old feature