FlagLint (v0.6.0) is a CLI tool that scans LaunchDarkly Node.js SDK usage and generates safe, reviewable migration diffs to OpenFeature. It inventories all direct calls (boolVariation, stringVariation, etc.), reports dynamic keys and unguarded patterns, and provides a CI gate to prevent new vendor-coupled flag access. Released under MIT, it supports both ESM and CJS imports from launchdarkly-node-server-sdk and @launchdarkly/node-server-sdk. Key differentiators: argument-order error detection, automated migration with --apply, and zero-runtime dependencies (only Node >=20 required).
npm install flaglintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Complete workflow: scan LaunchDarkly usage, preview migration diff, apply rewrite, and enforce no-direct-calls in CI.
Upgrade to Node >=20.
Use import syntax or npx CLI.
Review dynamic-key calls manually; use --dry-run first.
Follow the inline guidance in the migration diff or read the docs for provider setup.
Use a different migration strategy for client-side SDKs.
Use ESM: add "type": "module" in package.json or use .mjs extension. Or use npx flaglint.
Use import { scan } from 'flaglint' or import FlagLint from 'flaglint' and call new FlagLint().scan().Use npx flaglint (without install) or install globally with npm i -g flaglint.
No dependency data recorded yet.