NPM-DEPRECATE(3)
π npm-deprecate(3) β NPM manual glow-up π
okay so bestie, this is the manual page for npm-deprecate, and it is lowkey iconic: it's the thing that updates a package's npm registry entry with a deprecation warning so everyone who tries to install it gets the heads-up. no cap. β¨
πΈ NAME πΈ
npm-deprecate β deprecate a version of a package. periodt. π
π SYNOPSIS π
npm.commands.deprecate(args, callback)
β¨ DESCRIPTION β¨
This command will update the npm registry entry for a package, providing a deprecation warning to all who attempt to install it. it's giving "hey bestie maybe don't install this one" energy, fr. π
The args parameter must have exactly two elements β like, exactly two, bestie, do not try to sneak in a third:
package[@version]β the version portion is optional, and may be either a range, or a specific version, or a tag. so you can point at an exact version, a range, or a tag. slay. πmessageβ the warning message that will be printed whenever a user attempts to install the package. make it clear, make it useful, make it a warning. π
ngl, you must be the package owner to deprecate something. see theownerandadduserhelp topics. iykyk. π
To un-deprecate a package, specify an empty string ("") for the message argument. yup β just the empty string, that's the un-deprecate move. π
π SEE ALSO π
npm apihelp publishnpm apihelp unpublishnpm help 7 registry
mwah π this page is NPM-DEPRECATE(3), from the NPM manual, dated March 2017 β iconic, fr fr. bye bestie π«Ά
π¦ where this page comes from
- nixos 26.05: hueadm 1.2.1
- nixpkgs unstable: hueadm 1.2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms