CB-3445: Add which to checked-in node_modules

This commit is contained in:
Ian Clelland
2014-08-15 13:35:50 -04:00
parent 7d6ac87033
commit fd6a1e5ed0
5 changed files with 177 additions and 0 deletions
Generated Vendored Executable
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env node
var which = require("../")
if (process.argv.length < 3) {
console.error("Usage: which <thing>")
process.exit(1)
}
which(process.argv[2], function (er, thing) {
if (er) {
console.error(er.message)
process.exit(er.errno || 127)
}
console.log(thing)
})