Wondering what’s next for npm?Check out our public roadmap! »

bail

1.0.4 • Public • Published

bail

Build Coverage Downloads Size

⚠️ Throw a given error.

Installation

npm:

npm install bail

Usage

var bail = require('bail')
 
bail()
 
bail(new Error('failure'))
// Error: failure
//     at repl:1:6
//     at REPLServer.defaultEval (repl.js:154:27)
//     ...

API

bail([err])

Throw a given error.

Parameters
  • err (Error?) — Optional error.
Throws
  • Error — Given error, if any.

Related

License

MIT © Titus Wormer

Install

npm i [email protected]

Version

1.0.4

License

MIT

Unpacked Size

4.24 kB

Total Files

4

Last publish

Collaborators

  • avatar