Super simple JavaScript function for console logging, inspired by the Laravel dd() and dump() functions.
You can install the package via npm or yarn:
$ npm install dd.js
$ yarn add dd.js
require('dd.js');
dump(foo, bar); // This is just a plain console.log
dd(foo, bar); // This will throw an exception after the logging to try to stop further execution
Contributions are welcome, thanks to y'all :)
Appstract is a small team from The Netherlands. We create (open source) tools for webdevelopment and write about related subjects on Medium. You can follow us on Twitter, buy us a beer or support us on Patreon.
The MIT License (MIT). Please see License File for more information.