1.0.1 • Published 10 years ago

leave v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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"