https://github.com/paulmelnikow/hasbin-cli
From the command line, check whether a binary exists in the PATH environment variable
https://github.com/paulmelnikow/hasbin-cli
bin binary cli hasbin path
Last synced: about 1 month ago
JSON representation
From the command line, check whether a binary exists in the PATH environment variable
- Host: GitHub
- URL: https://github.com/paulmelnikow/hasbin-cli
- Owner: paulmelnikow
- License: mit
- Created: 2017-02-19T17:34:19.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T21:36:01.000Z (over 2 years ago)
- Last Synced: 2025-03-16T16:40:59.015Z (2 months ago)
- Topics: bin, binary, cli, hasbin, path
- Language: JavaScript
- Size: 170 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# hasbin-cli
[][npm]
[][npm]
[][build]
[][prettier][npm]: https://npmjs.com/hasbin-cli
[build]: https://circleci.com/gh/paulmelnikow/hasbin-cli/tree/main
[prettier]: https://prettier.io/From the command line, check whether a binary exists in the PATH environment
variable.## Usage
Make sure that one or more programs is installed.
```sh
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.
```sh
hasbin --some brew apt-get || echo 'Please install a package manager.' && exit 1
```Return the name of the first program that is installed.
```sh
echo 'Your package manager is:' && hasbin --first brew apt-get
```## Installation
```sh
npm install hasbin-cli
```## Contribute
- Issue Tracker: https://github.com/paulmelnikow/hasbin-cli/issues
- Source Code: https://github.com/paulmelnikow/hasbin-cliPull requests welcome!
## Support
If you are having issues, please let me know.
## License
The project is licensed under the MIT license.