Neverending Prototype Mode

    bail
    TypeScript icon, indicating that this package has built-in type declarations

    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 bail@1.0.4

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    4.24 kB

    Total Files

    4

    Last publish

    Collaborators

    • wooorm