This repository is a collection of Codemods to help convert codebases from an existing vendor's SDKs to OpenFeature SDKs using the existing vendor's OpenFeature Provider.
- DevCycle to OpenFeature Node.js Codemod
- Convert your Node.js application using DevCycle's Node.js Server SDK to using OpenFeature's Node.js SDK with DevCycle's OpenFeature Provider
- Run Codemod using:
codemod devcycle-to-openfeature-nodejs-workflow
- LaunchDarkly to OpenFeature Node.js Codemod (Coming Soon)
- Convert your Node.js application using LaunchDarkly Node.js SDK to using OpenFeature's Node.js SDK with LaunchDarkly's OpenFeature Provider
Note: these Codemods are just the starting point, they should cover most of the brute-force work, but will need manual review and cleanup to work in your codebase
First install the Codemod NPM package:
npm i -g codemod
Run Codemod:
codemod devcycle-to-openfeature-nodejs-workflow
In each folder first install packages using pnpm install
, then run the tests using pnpm test
. The tests primarily just ensure that the test fixtures under __testfixtures__
transform correctly using the Codemod.