eyecatcher
v0.1.8
Published
Beautiful console logging.
Downloads
3
Maintainers
Readme
EyeCatcher
A tiny library that creates beautiful logging.
Installation
npm install eyecatcher
Usage
const eyecatcher = require('eyecatcher');
Prints your message, time and position in the code:
eyecatcher.log('Log', 'example');
eyecatcher.info('Info', 'example');
eyecatcher.warn('Warning example');
eyecatcher.error('Error example');
Prints a block with your message:
eyecatcher.logBlock('Log block example');
eyecatcher.infoBlock('Info block example. Array:', yourArray);
eyecatcher.warnBlock('Warning block example. JSON:', yourJson);
eyecatcher.errorBlock('Error block example.');
You can use an array or an object.
Examples
Tests
npm test
License
The MIT License (MIT) Copyright (c) 2018 Tamas Szoke
https://opensource.org/licenses/MIT