@fallow-cli/fallow-node
v2.66.2
Published
Native Node.js bindings for fallow dead-code, duplication, and health analyses.
Maintainers
Readme
@fallow-cli/fallow-node
Native Node.js bindings for fallow’s main analyses.
Install
npm install @fallow-cli/fallow-node # or: pnpm/yarn/bun add @fallow-cli/fallow-nodeAPI
detectDeadCode(options?)detectCircularDependencies(options?)detectBoundaryViolations(options?)detectDuplication(options?)computeComplexity(options?)computeHealth(options?)
All functions are async and return the same JSON-shaped report contracts that the CLI emits for --format json.
Enum-like option values use lowercase CLI-style strings such as "mild", "cyclomatic", "handle", and "low".
Rejected promises throw a FallowNodeError with:
messageexitCode- optional
code - optional
help - optional
context
