Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

appstract/dd.js

Repository files navigation

dd.js

Latest Version on NPM Software License

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.