Registry / devops / ngmigrate

ngmigrate

JSON →
library0.0.4jsnpmunverified

A proof-of-concept tool for automatic migration of Angular applications, specifically converting deprecated `<template>` elements to `<ng-template>` introduced in Angular 4. Version 0.0.4 is the latest, released as a PoC with no active development. It uses Angular Compiler, codelyzer, and tslint for context-aware replacement, distinguishing it from simple search/replace approaches.

npm install ngmigrate
INSTALL
IMPORT
SIG · NGMIGRATE
N
ngmigrate
devopsjavascriptv0.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ngmigrate
npm i -g ngmigrate && ngmigrate [PATH]
npx ngmigrate (may not work due to global install requirement)
CLI tool, not a library; installed globally and run from command line.

Installs ngmigrate globally and runs migration on Angular source files in the current directory.

npm i -g ngmigrate ngmigrate ./src
Debug
Known issues
gotchaDo not perform migration on code not under version control.
fix
Ensure the project is in a git repository or backed up before running ngmigrate.
affects: 0.0.4
gotchaTool is a proof-of-concept with limited migration strategies; only handles <template> to <ng-template>.
fix
Manually handle other Angular migrations or use more comprehensive tools like ng update.
affects: 0.0.4
Errors
Common errors & fixes
Command not found: ngmigrate
npm global install path not in PATH or missing -g flag.
fix
Install globally: npm i -g ngmigrate, then run ngmigrate.
Upgrade
Version history
0.0.4latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
ngmigrate — npm install ngmigrate · libregistry