JSPM

exitzero

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5944
  • Score
    100M100P100Q124390F
  • License ISC

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.

Package Exports

  • exitzero

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (exitzero) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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

npm install exitzero --global

Example

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

npm install
npm test

Dependencies

None

Dev Dependencies

  • nixt: Simple and powerful testing for command-line apps
  • tape: tap-producing test harness for node and browsers

License

ISC