NPM-CONFIG(3)
π 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 inargsis interpreted as the key, and the third element is interpreted as the value. πgetβ Gets the value of a config parameter. The second element inargsis the key to get the value of. πdelete(rmordel) β Deletes a parameter from the config. The second element inargsis 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
- 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