NPM-DEPRECATE(3)

πŸ“¦ version 1.2.1, in nixos 26.05, nixpkgs unstable

πŸ’… 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 the owner and adduser help 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 publish
  • npm apihelp unpublish
  • npm 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