Command-line utility to scan AngularJS applications and recommend migration paths to Angular. Version 1.0.6 is the latest stable release. It analyzes code complexity, SLOC, antipatterns, and AngularJS version to suggest either rewrite or phased upgrade via ngUpgrade. Key differentiators: built-in antipattern detection, preparation report generation, and explicit rewrite threshold calculation. Periodic releases with no set cadence.
npm install ngmaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows programmatic usage: create analysisTool instance, call runAnalysis with app path, and handle the resulting recommendation promise.
Use asynchronous methods (e.g., countLinesOfCode) and await promises instead of blocking.
Ensure the process has appropriate write permissions or set up a working directory.
Avoid using internal methods; rely on the public API: runAnalysis() and runRecommendation().
Run 'npm install -g ngma' to install globally, or 'npm install ngma' for local project use.
Switch to ES modules: use import or ensure your package.json has "type": "module".
Run the tool with appropriate permissions or change working directory to a writable location.