NPM-PUBLISH(3)

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

πŸ’– NAME πŸ’–

okay bestie, welcome to the npm-publish(3) page β€” section 3, the manual for npm-publish β€” and it's literally about Publish a package. periodt. πŸ’…

✨ SYNOPSIS ✨

the call looks like this, exactly:

npm.commands.publish([packages,] callback)

πŸ¦‹ DESCRIPTION πŸ¦‹

so this one publishes a package to the registry so it can be installed by name. iconic behavior, no cap.

the possible values in the packages array are:

  • <folder> β€” a folder containing a package.json file
  • <tarball> β€” a url or file path to a gzipped tar archive containing a single folder with a package.json file inside

if the package array is empty, npm will try to publish something in the current working directory. lowkey convenient 🫢

this command could fail if one of the packages specified already exists in the registry. it overwrites when the "force" environment variable is set β€” yes, that "force" vibe fr fr.

🌸 SEE ALSO 🌸

  • npm help 7 registry
  • npm help adduser
  • npm apihelp owner

mwah πŸ’‹ β€” this page is dated March 2017 and lives under the NPM-PUBLISH(3) label. bye bestie! πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from