es6-turbo-logger

0.0.4 • Public • Published

es6-turbo-logger

Downloads Downloads npm version dependencies dev dependencies License

Useful logger for ES6 applications. It provides log() function that replaces the standard console.log() function and outputs passed arguments in browser console as a group, indicating the names of the variables/constants that were passed. Optionally, you can specify group label.

Getting Started

Install it via npm:

npm install es6-turbo-logger

And include in your project:

import log from 'es6-turbo-logger';

Then use log() function instead standard console.log(), passing objects as a first argument in object wrapper:

const a = 'Hello';
let b = 'World';
const c = a.b;
log({a,b,c});

In the browser console it will look like this:

es6-turbo-logger

Optionally you can specify group label as a second argument:

const a = 'Hello';
let b = 'World';
const c = a.b;
log({a,b,c}, 'Group Label');

In the browser console it will look like this:

es6-turbo-logger

License

MIT

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i es6-turbo-logger

    Weekly Downloads

    5

    Version

    0.0.4

    License

    MIT

    Last publish

    Collaborators

    • alwinn1977