@glowyjs/dd

DD Package provides functionality for JS console logging, inspired by the PHP Symfony dd() and dump() functions.

Usage no npm install needed!

<script type="module">
  import glowyjsDd from 'https://cdn.skypack.dev/@glowyjs/dd';
</script>

README

DD

DD Package provides functionality for JS console logging, inspired by the PHP Symfony dd() and dump() functions.

Version License

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