Skip to content

node module to check if a command-line command exists

License

Notifications You must be signed in to change notification settings

blacksun1/command-exists

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

command-exists

node module to check if a command-line command exists

installation

npm install command-exists

usage

var commandExists = require('command-exists');

commandExists('ls', function(err, commandExists) {
    
    if(commandExists) {
        // proceed confidently knowing this command is available
    }

});

About

node module to check if a command-line command exists

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%