{"name":"command-exists","version":"1.1.0","description":"check whether a command line command exists in the current environment","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+ssh://git@github.com/mathisonian/command-exists.git"},"keywords":["cli","command","exists"],"author":{"name":"Matthew Conlen"},"contributors":[{"name":"Arthur Silber","email":"arthur@arthursilber.de","url":"https://arthursilber.de"}],"license":"MIT","bugs":{"url":"https://github.com/mathisonian/command-exists/issues"},"homepage":"https://github.com/mathisonian/command-exists","devDependencies":{"expect.js":"^0.3.1","jshint":"^2.9.1","mocha":"^2.5.3"},"gitHead":"97ca80b707ee5494a4f3853e88b94be7b57a7133","_id":"command-exists@1.1.0","_shasum":"02f9dacfddcc6f8e2e22089feb6b47a0594978ac","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.1","_npmUser":{"name":"mathisonian","email":"mc@mathisonian.com"},"dist":{"shasum":"02f9dacfddcc6f8e2e22089feb6b47a0594978ac","tarball":"http://registry-npm.ywwl.com/command-exists/download/command-exists-1.1.0.tgz","integrity":"sha512-0Zke1YSwoDf2DzujXLHSn2tFNK0lY6gyQ1xS87KlFOPj0tTkaNdfV2MX3KISINve9uraJq0rXxxTQknJG6mRtA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwt8SDb0hTYZCOGNliggFZ2Vqx1nQixiegQoA9m6V22QIhAKqPp2VP6wO+XM9B1ykpLIqAzOVJtYG/r6rNxmI9yVTo"}],"size":2614,"noattachment":false,"key":"/command-exists/-/command-exists-1.1.0.tgz"},"maintainers":[{"name":"mathisonian","email":"mc@mathisonian.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/command-exists-1.1.0.tgz_1486761593154_0.05480572651140392"},"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":1486761594900,"_cnpm_publish_time":1486761594900,"dist-tags":{"latest":"1.2.9"}}