{"name":"command-exists","version":"1.2.4","description":"check whether a command line command exists in the current environment","main":"index.js","scripts":{"test":"mocha test/test.js"},"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":"8ead248efc8a1cb8acef0154b0f5b026f90dde78","_id":"command-exists@1.2.4","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"mathisonian","email":"mc@mathisonian.com"},"dist":{"integrity":"sha512-9NoZJMIzkBfe26RwXIGr0thU/bZw68pw3dHjPav+m+AIns73SDe2ggMLTGXkzed4R67D8eTUnRZ2fraxAffQqw==","shasum":"ae9e59d17793858c1f0ab0e43f10e7a2d9b276a8","tarball":"http://registry-npm.ywwl.com/command-exists/download/command-exists-1.2.4.tgz","fileCount":11,"unpackedSize":10403,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUWJJP6SOZ6fsuvTpvO9HgEybSnqp5jr7C9SpMJ7wQfQIhANN4O4X3y1yzZ5RPvtej11kTU/2en/faAu/F8RmrxWnb"}],"size":3478,"noattachment":false,"key":"/command-exists/-/command-exists-1.2.4.tgz"},"maintainers":[{"name":"mathisonian","email":"mc@mathisonian.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-exists_1.2.4_1523575077744_0.3767153077803562"},"_hasShrinkwrap":false,"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":1523575077956,"_cnpm_publish_time":1523575077956,"dist-tags":{"latest":"1.2.9"}}