NPM-CONFIG(3)

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

πŸ’– NAME πŸ’–

okay bestie, welcome to npm-config (the NPM-CONFIG(3) manual) β€” it is literally here to Manage the npm configuration files. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

         npm.commands.config(args, callback)
         var val = npm.config.get(key)
         npm.config.set(key, val)

✨ DESCRIPTION ✨

okay so this function acts much the same way as the command-line version β€” same energy, same vibes. The first element in the array tells config what to do. Possible values are:

  • set β€” Sets a config parameter. The second element in args is interpreted as the key, and the third element is interpreted as the value. πŸ’…
  • get β€” Gets the value of a config parameter. The second element in args is the key to get the value of. πŸ”
  • delete (rm or del) β€” Deletes a parameter from the config. The second element in args is the key to delete. πŸ—‘οΈ
  • list (ls) β€” Show all configs that aren't secret. No parameters necessary. ✨
  • edit: β€” Opens the config file in the default editor. This command isn't very useful programmatically, but it is made available. πŸ“

To programmatically access npm configuration settings, or set them for the duration of a program, use the npm.config.set and npm.config.get functions instead. 🫢

πŸ”₯ SEE ALSO πŸ”₯

  • npm apihelp npm

okay that's the whole page, bestie β€” it's the NPM-CONFIG(3) manual, dated March 2017, and that's the vibe check, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from