leave

1.0.1 • Public • Published

Console.log and Leave !!

Leave

If you too think these two lines are annoying to repeat everytime you want to debug,

    console.log(value);
    process.exit();

... then this package is the right choice for you

installation

    $ npm install leave

how does it work?

    var leave = require('leave');
    leave(value); // will print and process.exit()

it has same use as console.log, here are more examples:

    var value = 123;
    leave("value", value); // will print "value 123"
    leave("The value is %s", value); // will print "The value is 123"

Package Sidebar

Install

npm i leave

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • javascript