{"name":"command-exists","version":"0.1.0","description":"check whether a command line command exists in the current environment","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"http://github.com/mathisonian/command-exists"},"keywords":["cli","command","exists"],"author":{"name":"Matthew Conlen"},"license":"MIT","bugs":{"url":"https://github.com/mathisonian/command-exists/issues"},"homepage":"https://github.com/mathisonian/command-exists","devDependencies":{"expect.js":"^0.3.1","mocha":"^1.21.4"},"gitHead":"8b1ecf8785e7d5e518df4cfdf9afde72938a14d7","_id":"command-exists@0.1.0","_shasum":"2432d6bd61fbe996b04da83a8321206f90fb197e","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"mathisonian","email":"mc@mathisonian.com"},"maintainers":[{"name":"mathisonian","email":"mc@mathisonian.com"}],"dist":{"shasum":"2432d6bd61fbe996b04da83a8321206f90fb197e","tarball":"http://registry-npm.ywwl.com/command-exists/download/command-exists-0.1.0.tgz","integrity":"sha512-yUQjw/3EksFyMrC6/RCUtPbxcPLV1kKeaUYVSEFSCGuWh8ZvCgCY6vO7oDUdlaRXa9c5vwYSsLbsjsJRWYQgXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF/1nXVxEfSlUronLBRzqY62KAgj+eW60g7K3oRg8mocAiA3RFYLGDjNlrWjwCJbrR62TjnVIoSpeYCSHywpR7TgBg=="}],"size":2050,"noattachment":false,"key":"/command-exists/-/command-exists-0.1.0.tgz"},"directories":{},"deprecated":"Potential security vulnerability fixed in v.1.2.4","readme":"command-exists\n==============\n\nnode module to check if a command-line command exists\n\n\n\n## installation\n\n```bash\nnpm install command-exists\n```\n\n## usage\n\n### async\n\n```js\nvar commandExists = require('command-exists');\n\ncommandExists('ls', function(err, commandExists) {\n\n    if(commandExists) {\n        // proceed confidently knowing this command is available\n    }\n\n});\n```\n### promise\n```js\nvar commandExists = require('command-exists');\n\n// invoked without a callback, it returns a promise\ncommandExists('ls')\n.then(function(command){\n    // proceed\n}).catch(function(){\n    // command doesn't exist\n});\n```\n\n### sync\n```js\nvar commandExistsSync = require('command-exists').sync;\n// returns true/false; doesn't throw\nif (commandExistsSync('ls')) {\n    // proceed\n} else {\n    // ...\n}\n\n```\n\n\n## changelog\n\n### v1.2.7\n\nRemoves unnecessary printed output on windows.\n\n### v1.2.6\n\nSmall bugfixes.\n\n### v1.2.5\n\nFix windows bug introduced in 1.2.4.\n\n### v1.2.4\n\nFix potential security issue.\n\n### v1.2.0\n\nAdd support for promises\n\n### v1.1.0\n\nAdd synchronous version\n\n### v1.0.2\n\nSupport for windows\n","publish_time":1411331989081,"_cnpm_publish_time":1411331989081,"dist-tags":{"latest":"1.2.9"}}