Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bin.md « api « doc - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e04b2f6cb2b70d7d6ce59d0463b7ee15118b06e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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")
    }