DevCycle to OpenFeature Node.js - Variable Transform CodeMod
This Codemod changes DevCycle variable calls to openfeature flags:
- Replace variableValue() and variable() calls with get<Type>Value() and get<Type>Details() respectively, where <Type> is Boolean, String, Number, or Object.
- move the first parameter (user/context) to the third parameter for each variable call being coverted.
- all Openfeature calls should be awaited.
Before
ts
After
ts