PyxLog
Simple and pretty logging
Install
$ npm i --save pyx-log
$ npm i --save-dev pyx-log
Usage
const PyxLog = require('./index');
const me = PyxLog.create('Me');
const world = PyxLog.create('World');
me.header('Initializing World Domination');
me.log('Worlds: 1');
me.debug('Is world worth dominating?', true);
world.header('Initializing World Domination Defence Measures');
me.alert('WORLD IS RESISTING');
me.header('Initializing Offencive Measures');
me.beSilent();
for (let i = 0; i < 100; i += 1) {
me.log('FIRE!');
}
me.beNormal();
world.log('...');
world.debug('Is world over?', '???');
Output
Docs
Docs - This README.md file
API - The API docs for the PyxLog class
License
MIT © Alan Tirado