1.1.1 • Published 5 years ago

fails v1.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

fails

Detect whether a command fails, and invert exit code.

Install

npm i fails

or

yarn add fails

Use

CLI

fails "echo 'hi'"
# exit code = 1

fails "exit 1"
# exit code = 0

JS

var fails = require('fails')

var command = 'echo "hi"'

function callback (failed) {
  // `failed` is true or false
}

fails(command, callback)
1.1.1

5 years ago

1.1.0

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago