Manage the npm configuration files

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

This function acts much the same way as the command-line version. The first element in the array tells config what to do. Possible values are:

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.

Last modified June 02, 2015           Found a typo? Send a pull request!

Getting Started

Private Modules

Using npm

npm Enterprise

CLI Commands

Configuring npm

Using npm programmatically

npm policy documents

View All On One Page