@apolitical/common-helpers-feature-flag

Node.js module to enable feature flag

Usage no npm install needed!

<script type="module">
  import apoliticalCommonHelpersFeatureFlag from 'https://cdn.skypack.dev/@apolitical/common-helpers-feature-flag';
</script>

README

Common Helpers- FeatureFlag

Node.js module to expose functionality to connect to the ab testing repo.

Current function

  • FeatureFlag
    • Checks the state of a feature and returns based on the state. Redirects if you have access, returns component if you do.
  • isFeatureLocked
    • Checks if a feature is locked or not