hasbin-cli

3.0.0 • Public • Published

hasbin-cli

version license build code style

From the command line, check whether a binary exists in the PATH environment variable.

Usage

Make sure that one or more programs is installed.

hasbin foreman heroku || echo 'Foreman and heroku are required!' && exit 1
hasbin --all foreman heroku || echo 'Foreman and heroku are required!' && exit 1

Make sure that at least one program is installed.

hasbin --some brew apt-get || echo 'Please install a package manager.' && exit 1

Return the name of the first program that is installed.

echo 'Your package manager is:' && hasbin --first brew apt-get

Installation

npm install hasbin-cli

Contribute

Pull requests welcome!

Support

If you are having issues, please let me know.

License

The project is licensed under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i hasbin-cli

Weekly Downloads

0

Version

3.0.0

License

MIT

Unpacked Size

4.59 kB

Total Files

5

Last publish

Collaborators

  • paulmelnikow