C

openFeature/replace-feature-flag

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

This codemod replaces openFeature compatible feature flags with a static value provided by the user.

Codemod replaces following SDK calls: getBooleanValue, getStringValue, getNumberValue, getObjectValue.

The codemod accepts the following arguments:

  • key: The key of the feature flag to be replaced.
  • value: The value to replace the feature flag with.

Example

Before

ts

After

ts

Ready to contribute?

Build your own codemod and share it with the community.