A CLI tool by Cloudflare for quantifying UI framework migrations (e.g., Backbone to React). Version 2.0.0 analyzes source and test files by framework, counts lines of code (LOC), tracks dependencies via webpack stats, and outputs structured JSON for reporting. Stable, low maintenance, with config file support. Differentiator: provides dependency feedback and migration stats specific to framework comparisons.
npm install ui-migration-statsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation, config file structure, and CLI usage for migration stats.
Use a JSON config file (e.g., stats.conf.json).
Use 'npx stats' or a custom script in package.json.
Remove 'unconditionalLoc' from config; it is now default behavior.
Create stats.conf.json or specify a different path with --config.
Run 'npx stats' or install globally with 'npm install -g ui-migration-stats'.