bail
Throw a given error
Last updated 6 years ago by wooorm .
MIT · Repository · Bugs · Original npm
$ cnpm install bail 
SYNC missed versions from official npm registry.

bail

Build Coverage Downloads Size

:warning: Throw a given error.

Install

npm:

npm install bail

Use

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

Current Tags

  • 2.0.2                                ...           latest (4 years ago)

4 Versions

  • 2.0.2                                ...           4 years ago
  • 2.0.1                                ...           4 years ago
  • 1.0.4                                ...           6 years ago
  • 1.0.5                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org