A tiny library that creates beautiful logging.
npm install eyecatcher
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.
npm test
The MIT License (MIT)
Copyright (c) 2018 Tamas Szoke