ng-morph
v4.8.4
Published
[](https://npmjs.com/package/ng-morph) [](https://npmjs.com/package/ng-morph) [, '/', ['**/*.ts', '**/*.json']));
/**
* This simple migration gets all imports from the project TS files and
* replaces 'old' substring with 'new'
* */
const imports = getImports('some/path/**.ts', {
moduleSpecifier: '@morph-old*',
});
editImports(imports, (importEntity) => ({
moduleSpecifier: importEntity.moduleSpecifier.replace('old', 'new'),
}));
/**
* All changes are made in a virtual project.
* You can save them when it is time
* */
saveActiveProject();You can check it out on Stackblitz playground
Dive into More Examples 🌟🔍
- Add readonly for unchanged 📜🔒
- Upgrade constructor DI to inject 🛠️🎩
- Remove unused deps 🧹❌
- Prefix for selector 🏷️✨
For more examples visit this stackblitz collection
Core team
ng-morph is a part of Taiga UI libraries family which is backed and used by a large enterprise. This means you can rely on timely support and continuous development.
License
🆓 Feel free to use our library in your commercial and private applications
All ng-morph packages are covered by Apache 2.0
Read more about this license here
