GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NPM-CONFIG (3)

NAME

npm-config - Manage the npm configuration files

CONTENTS

Description
See Also

SYNOPSIS

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

DESCRIPTION

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:

o set
Sets a config parameter. The second element in args is interpreted as the
key, and the third element is interpreted as the value.
o get
Gets the value of a config parameter. The second element in args is the
key to get the value of.
o delete (rm or del)
Deletes a parameter from the config. The second element in args is the
key to delete.
o list (ls)
Show all configs that aren’t secret. No parameters necessary.
o 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

o npm apihelp npm

Search for    or go to Top of page |  Section 3 |  Main Index


NPM-CONFIG (3) October 2015

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.