growthbook/GrowthBook Code References (standalone)

Use the `gb-find-code-refs` utility to find references to feature flags in your code.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
flagsPathPath to JSON file containing an array of feature key strings.yes
dirPath to directory containing codebase to be scanned.yes
branchName of the branchyes
allowTagsEnable storing references for tags. Lists the tag as a branch.nofalse
contextLinesThe number of context lines to include with each code reference. If 0, only the lines containing flag references will be sent. If > 0, will include that number of context lines above and below the flag reference. A maximum of 5 context lines may be provided. (default 2)no2
debugEnable verbose debug logging.nofalse
lookbackSet the number of commits to search in history for whether you removed a feature flag from code. You may set to 0 to disable this feature. Setting this option to a high value will increase search time.no10
outFileSet the filename of the output JSON containing all code references. Defaults to 'coderefs.json'nocoderefs.json
repoNameDefine the repo name so that it is included in the output JSON.no

no outputs