1.0.6 • Published 6 years ago

owting v1.0.6

Weekly downloads
61
License
MIT
Repository
github
Last release
6 years ago

owting

Simple enhanced console logging.

Screenshot of logging

What does it do?

owting enhances the native console.log and console.error functions to provide automatic timestamps, as well as coloring and enhanced JSON formatting for objects. You no longer need to call JSON.stringify, or worry about your object types. Circular references in JS objects are automatically taken care of by the complimentary package owtj.

The first parameter to every console.log or console.error function becomes the main title, you can add as many parameters as you like, but they will fall under a single timestamp. Each parameters wil be stringified and formatted nicely.

Usage

The usage is extremely simple. You turn it on, and you turn it off.

const owting = require('owting');

owting.on();

console.log('Woohoo, my console logs look nice!');
console.log('This is so awesome...');

owting.off();

console.log('Oh, they\'ve gone back to normal :(');
1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago