command-exists
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -7,9 +7,9 @@ 'use strict'; | ||
var child = exec('command -v ' + commandName + | ||
var child = exec('command -v ' + commandName + | ||
' 2>/dev/null' + | ||
' && { echo >&1 \'' + commandName + ' found\'; exit 0; }', | ||
(error, stdout, stderr) => { | ||
function (error, stdout, stderr) { | ||
callback(null, !!stdout); | ||
}); | ||
}; | ||
}; |
{ | ||
"name": "command-exists", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "check whether a command line command exists in the current environment", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3931
29