cmd-exists

checks if commands exist

cmd-exists

checks if system can run the command

installation

npm install cmd-exists

usage

    var exists = require('cmd-exists');
 
    exists('sass', 'compass', function (results) {
        // results = { sass: true, compass: true } 
    });

or

    var exists = require('cmd-exists');
 
    exists(['sass', 'compass'], function (results) {
        // results = { sass: true, compass: true } 
    });