1.0.1 • Published 4 years ago

dump_laravel_js v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

dump_laravel_js

Latest Version on NPM Software License

Simple and small 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 dump_laravel_js
$ yarn add dump_laravel_js

Usage

require('dump_laravel_js');
//or
import 'dump_laravel_js';
//or 
import {dd, dump}, * as _ from 'import';

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

License

The MIT License (MIT). Please see License File for more information.