https://github.com/flet/exitzero
Ensure a command always exist with zero status.
https://github.com/flet/exitzero
Last synced: 5 months ago
JSON representation
Ensure a command always exist with zero status.
- Host: GitHub
- URL: https://github.com/flet/exitzero
- Owner: Flet
- Created: 2015-01-17T21:02:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-01T21:49:57.000Z (over 10 years ago)
- Last Synced: 2025-01-03T15:02:21.374Z (5 months ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# exitzero
make a CLI command always return an exit status of 0. This can be useful in combination with a `watch` process to ensure things keep running if the target command returns a non-zero exit status.
## Installation
```sh
npm install exitzero --global
```## Example
```sh
flet@lappy:~$ ls nonexist
ls: cannot access nonexist: No such file or directory
flet@lappy:~$ echo $?
2
flet@lappy:~$ exitzero ls nonexist
ls: cannot access nonexist: No such file or directory
flet@lappy:~$ echo $?
0
```## Tests
```sh
npm install
npm test
```## Dependencies
None
## Dev Dependencies
- [nixt](https://github.com/vesln/nixt): Simple and powerful testing for command-line apps
- [tape](https://github.com/substack/tape): tap-producing test harness for node and browsers## License
ISC