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-LOAD (3)

NAME

npm-load - Load config settings

CONTENTS

Description

SYNOPSIS

npm.load(conf, cb)

DESCRIPTION

npm.load() must be called before any other function call. Both parameters are optional, but the second is recommended.

The first parameter is an object containing command-line config params, and the second parameter is a callback that will be called when npm is loaded and ready to serve.

The first parameter should follow a similar structure as the package.json config object.

For example, to emulate the --dev flag, pass an object that looks like this:

{
  "dev": true
}

For a list of all the available command-line configs, see npm help config

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


NPM-LOAD (3) October 2015

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