Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 8 days 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 (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T21:36:01.000Z (about 2 years ago)
- Last Synced: 2024-12-21T09:10:38.952Z (19 days ago)
- Topics: bin, binary, cli, hasbin, path
- Language: JavaScript
- Size: 170 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# hasbin-cli
[![version](https://img.shields.io/npm/v/hasbin-cli?style=flat-square)][npm]
[![license](https://img.shields.io/npm/l/hasbin-cli?style=flat-square)][npm]
[![build](https://img.shields.io/circleci/project/github/paulmelnikow/hasbin-cli/main?style=flat-square)][build]
[![code style](https://img.shields.io/badge/code_style-prettier-ff69b4?style=flat-square)][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.