@mblackmblack/node-pretty-log

1.1.0 • Public • Published

Pretty Log

Pretty logs stuff to the console in Node apps.

Usage

npm install node-pretty-log

Then, in your JavaScript:

const log = require('node-pretty-log');

log('error', 'Uh Oh...');
log('warn', 'Warning...');
log('info', 'Info...');
log('success', 'Success...');

And the results:

Screenshot

You can also use multiple strings or variables. Example:

const log = require('node-pretty-log');

const error = { ok: false };
const warning = { data: 'missing semicolon' };
const info = 'This is some string info';
const success = { ok: true };

log('error', 'Uh Oh...', error);
log('warn', 'Warning...', warning);
log('info', 'Info...', info);
log('success', 'Success...', success);

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @mblackmblack/node-pretty-log

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

66.2 kB

Total Files

5

Last publish

Collaborators

  • mblackmblack