Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@apolitical/common-helpers-feature-flag

Node.js module to enable feature flag

Helper Functions, Node Modules

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