![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
[![npm version](https://img.shields.io/npm/v/ng-morph.svg)](https://npmjs.com/package/ng-morph) [![downloads](https://img.shields.io/npm/dy/ng-morph?color=dark-green)](https://npmjs.com/package/ng-morph) [![telegram chat](https://img.shields.io/badge/supp
Code mutations were never easier than now.
npm i --save-dev ng-morph
You also need @angular-devkit/core
and @angular-devkit/schematics
to be installed.
It is a large set of tools for both global code base updates in your project and speeding up your work on Angular schematics. It has ts-morph under the hood and allows you to manipulate with safe TypeScript AST.
🦅 You can quickly write migrations for your own project and run it as a simple script
🛠 There are many tools made for working with Angular. You can easily find and manipulate TS and Ng entities.
✅ You work with an abstract tree and it can be replaced, for example, with virtual tree for testing instead of real file system. So, you can test your schematics rapidly fast.
Install the package and visit our documentation
For example, this is how ng-morph
setup looks for migrating your own project:
import {setActiveProject, createProject, getImports, NgMorphTree} from 'ng-morph';
/**
* set all ng-morph functions to work with the all TS and JSON files
* of the current project
* */
setActiveProject(createProject(new NgMorphTree(), '/', ['**/*.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
For more examples visit this stackblitz collection
![]() Igor Katsuba |
![]() Roman Sedov |
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.
🆓 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
FAQs
[![npm version](https://img.shields.io/npm/v/ng-morph.svg)](https://npmjs.com/package/ng-morph) [![downloads](https://img.shields.io/npm/dy/ng-morph?color=dark-green)](https://npmjs.com/package/ng-morph) [![telegram chat](https://img.shields.io/badge/supp
The npm package ng-morph receives a total of 20,298 weekly downloads. As such, ng-morph popularity was classified as popular.
We found that ng-morph demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.