supreetpal / command-exists

node module to check if a command-line command exists

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 100.0%