basant307/AI_Governance_Project
045
1command-exists2==============3 4node module to check if a command-line command exists5 6 7 8## installation9 10```bash11npm install command-exists12```13 14## usage15 16### async17 18```js19var commandExists = require('command-exists');20 21commandExists('ls', function(err, commandExists) {22 23 if(commandExists) {24 // proceed confidently knowing this command is available25 }26 27});28```29### promise30```js31var commandExists = require('command-exists');32 33// invoked without a callback, it returns a promise34commandExists('ls')35.then(function(command){36 // proceed37}).catch(function(){38 // command doesn't exist39});40```41 42### sync43```js44var commandExistsSync = require('command-exists').sync;45// returns true/false; doesn't throw46if (commandExistsSync('ls')) {47 // proceed48} else {49 // ...50}51 52```53 54 55## changelog56 57### v1.2.758 59Removes unnecessary printed output on windows.60 61### v1.2.662 63Small bugfixes.64 65### v1.2.566 67Fix windows bug introduced in 1.2.4.68 69### v1.2.470 71Fix potential security issue.72 73### v1.2.074 75Add support for promises76 77### v1.1.078 79Add synchronous version80 81### v1.0.282 83Support for windows84 