mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-07 15:27:21 +00:00
push all website files
This commit is contained in:
23
website/node_modules/npm/lib/bin.js
generated
vendored
Normal file
23
website/node_modules/npm/lib/bin.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
module.exports = bin
|
||||
|
||||
var npm = require('./npm.js')
|
||||
var osenv = require('osenv')
|
||||
var output = require('./utils/output.js')
|
||||
|
||||
bin.usage = 'npm bin [--global]'
|
||||
|
||||
function bin (args, silent, cb) {
|
||||
if (typeof cb !== 'function') {
|
||||
cb = silent
|
||||
silent = false
|
||||
}
|
||||
var b = npm.bin
|
||||
var PATH = osenv.path()
|
||||
|
||||
if (!silent) output(b)
|
||||
process.nextTick(cb.bind(this, null, b))
|
||||
|
||||
if (npm.config.get('global') && PATH.indexOf(b) === -1) {
|
||||
npm.config.get('logstream').write('(not in PATH env variable)\n')
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user