mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-04 20:40:07 +02:00
update packages to latest version
This commit is contained in:
19
node_modules/npm/lib/bin.js
generated
vendored
Normal file
19
node_modules/npm/lib/bin.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
module.exports = bin
|
||||
|
||||
var npm = require("./npm.js")
|
||||
var osenv = require("osenv")
|
||||
|
||||
bin.usage = "npm bin\nnpm bin -g\n(just prints the bin folder)"
|
||||
|
||||
function bin (args, silent, cb) {
|
||||
if (typeof cb !== "function") cb = silent, silent = false
|
||||
var b = npm.bin
|
||||
, PATH = osenv.path()
|
||||
|
||||
if (!silent) console.log(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