npmjs.com

Display prefix

npm.commands.prefix(args, callback)

Print the prefix to standard out.

'args' is never used and callback is never called with data. 'args' must be present or things will break.

This function is not useful programmatically

Last modified December 17, 2014           Found a typo? Send a pull request!

Getting Started

Using npm

npm Enterprise

CLI Commands

Configuring npm

Using npm programmatically

npm policy documents

View All On One Page