@glowyjs/dd
v1.0.0
Published
DD Package provides functionality for JS console logging, inspired by the PHP Symfony dd() and dump() functions.
Downloads
2
Readme
Install
$ npm install --save @glowyjs/dd
Usage
import {dump, dd} from '@glowyjs/dd';
dump('Foo');
//=> Foo
dump('Foo', 'Bar');
//=> Foo
//=> Bar
dd('Foo', 'Bar')
//=> Foo
//=> Bar
//
// dd
//
// Function threw exception that is not an error:
//
// 'Stopped execution because dd(), use dump() if you want to proceed.'
Tests
Run tests
npm run test
License
The MIT License (MIT) Copyright (c) Sergey Romanenko