Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v1.0.93
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (14 sloc) 0.452 kb

npm-bin(3) -- Display npm bin folder

SYNOPSIS

npm.commands.bin(args, cb)

DESCRIPTION

Print the folder where npm will install executables.

This function should not be used programmatically. The logic for attaining the bin folder is quite simple.

var bin
if (npm.config.get("global")) {
  bin = path.resolve(npm.prefix, "bin")
} else {
  bin = path.resolve(npm.dir, ".bin")
}
Jump to Line
Something went wrong with that request. Please try again.