Remove and deprecate a package on your npm profile
First, set an account where your inactive packages will be archived:
npm config set npm-inactive-account $inactive_account
This will default to the value of npm whoami
+ "-inactive"
(e.g. jamen-inactive
)
Then you run npm-inactive
with the package name you are inactivating
npm-inactive some-package
This will set a deprecation message, and transfer the ownership from your account to the inactive account.
If you are inactivating a package because of a rename, give a second argument to improve the deprecation message:
npm-inactive some-package new-package
This will make it display:
this package ($inactive_package) has been renamed to $new_package. See repository for details
npm i -g npm-inactive
Removes a package from your profile and sets a deprecation message. Provide new-package
if you are inactiving because of a rename
Sets the username of where the inactive packages are transferred to