dd.js
v0.2.0
Published
Laravel dd() in JS
Downloads
31
Readme
dd.js
Super simple JavaScript function for console logging, inspired by the Laravel dd() and dump() functions.
Install
You can install the package via npm or yarn:
$ npm install dd.js
$ yarn add dd.js
Usage
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
Contributing
Contributions are welcome, thanks to y'all :)
About Appstract
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.
License
The MIT License (MIT). Please see License File for more information.