how to rename an npm package 1

how to rename an npm package

npm deprecate my-package-name@"< latest-version" "your message"

Here is what the above code is Doing:
1. Get the latest version of the package
2. Get the latest version of the package that is not deprecated
3. If the latest version is deprecated, then deprecate the latest version

Similar Posts