is-command Check if a CLI command is available whithin the current working directory. Installation npm install is-command Usage const isCommand = require('is-command'); isCommand('aCommand') .then((is) => { if (!is) { // aCommand does not exists. Do something about it… } }); }); or: import commandExists from 'is-command'; const is = await isCommand('aCommand') if (!is) { // aCommand does not exists. Do something about it…}