CLI tool to diagnose Node.js-to-Bun migration readiness for JavaScript/TypeScript projects. Current stable version 0.0.7 (pre-v1.0 beta). Scans package managers, lockfiles, tsconfig, GitHub Actions, dependency compatibility, and Bun-specific code risks. Outputs a 0-100 readiness score with grouped Blockers, Risks, Migration tasks, and Optional wins. Inspired by React Doctor, focuses on verifiable sources from Bun docs and Node compatibility table. No release cadence yet; single author project. Key differentiator: explicit migration scoring with actionable diagnostics, not just compatibility checks.
npm install bun-doctorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows programmatic usage with runDiagnostics function and default CLI invocation.
Use await or .then() when calling runDiagnostics.
Update code to access report properties directly instead of assuming array.
Use `--verbose` instead of `--all`.
Update any hardcoded score expectations; use relative thresholds instead of absolute scores.
Upgrade Node.js to version 20 or later, or use npx with --node-option=--experimental-vm-modules (not recommended).
Switch to ES modules: use import or set type: module in package.json.
Install TypeScript: npm install --save-dev typescript, or use --no-package flag to skip checks.
Update bun-doctor to >=0.0.3 and use correct import: import { runDiagnostics } from 'bun-doctor'.Add await: const report = await runDiagnostics(...);