Package Exports
- @modulens/angular
- @modulens/angular/dist/cli/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@modulens/angular) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Modulens for Angular
Modulens for Angular is a CLI tool for analyzing Angular workspaces and generating architecture, structure, and quality reports. It helps you spot large components, architectural risks, warning hotspots, and areas that may need refactoring.
Installation
Global install
npm install -g @modulens/angularThen run:
modulens scanOne-off usage with npx
npx @modulens/angular scanQuick start
Run Modulens in your Angular project directory:
modulens scanThis scans the current working directory and generates an HTML report.
You can also scan a specific workspace path:
modulens scan "path/to/workspace"Usage
Scan the current directory
modulens scanExplicitly scan the current directory
modulens scan .Scan a specific Angular workspace
modulens scan "path/to/workspace"By default, modulens scan uses the current working directory (process.cwd()) as the workspace root.
Output
Modulens generates an HTML report file in the scanned workspace directory.
The report file name follows this pattern:
modulens-angular-report-<workspace>.htmlAfter the scan is completed, the report is opened in your default browser.
Example
modulens scanor
npx @modulens/angular scan "C:/projects/my-angular-app"Requirements
- Node.js 18+
- An Angular workspace to scan
Limitations
Modulens for Angular is still in an early stage. Some checks are intentionally simple, reports are being refined, and output and scoring logic may evolve between versions.
Roadmap
Planned improvements may include:
- richer architecture insights
- stronger rule coverage
- smarter risk analysis
- clearer explanations for warnings
- more detailed and polished reports
License
ISC