dump_laravel_js

1.0.1 • Public • Published

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.

/dump_laravel_js/

    Package Sidebar

    Install

    npm i dump_laravel_js

    Weekly Downloads

    6

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.81 kB

    Total Files

    4

    Last publish

    Collaborators

    • freezon