Aalexbit-codemod

angularjs-third-party-deps

Mine AngularJS-specific third-party packages and migration blockers; read-only metrics

miningmetricsangularjscode-miningmigration-assessmentangularjs_dependency
PRO
0 executions

Run locally

npx codemod angularjs-third-party-deps

This is a Pro codemod. Preview changes and insights for free, no login or code sharing required. Applying changes and accessing insights requires a paid plan and sign in.Learn more

angularjs-third-party-deps

Read-only mining codemod that scans package.json (dependencies, devDependencies, peerDependencies) for AngularJS (1.x)-specific packages and classifies each as a migration blocker, and emits angularjs_dependency metrics. No files are written to the target repo.

Detection

Matches AngularJS ecosystem naming conventions only:

  • angular (core)
  • angular-* (e.g. angular-route, angular-mocks, angular-resource, angular-sanitize, angular-animate, angular-touch, angular-cookies, angular-messages, angular-translate, angular-ui-bootstrap, angular-ui-router, ...)
  • ui-router / @uirouter/* (@uirouter/angularjs, @uirouter/core, @uirouter/angular, @uirouter/angular-hybrid, ...)
  • ng-* (legacy AngularJS directive libraries, e.g. ng-file-upload, ng-table)

Modern Angular (2+) packages are intentionally excluded: @angular/* doesn't start with angular-/@uirouter/, and ngx-* doesn't start with ng- (no hyphen immediately after ng).

Classification

classificationriskMeaning
unsupportedcriticalAngularJS-only, EOL, no forward-compatible path — must be removed
needs-equivalentmediumAn Angular (2+) counterpart exists but requires a manual/partial rewrite
compatiblelowBuilt for the hybrid AngularJS/Angular bridge itself (e.g. @uirouter/angular-hybrid) — low risk during migration

Well-known packages use a curated exact-match table; unrecognized angular-*/@uirouter/*/ng-* names fall back to a conservative needs-equivalent / manual default.

Metrics

MetricCardinalities
angularjs_dependencyfile, package_name, version, dependency_type, classification, migration_category (dependency), risk, automation, effort_points, recommended_phase

Installation

bash

Development

bash

License

MIT

Ready to contribute?

Build your own codemod and share it with the community.