This is simple and basic package. In this we can customise color of console text like success, error and info etc. By this its very easy to distinguish console text.
Install latest package by command.
npm install magic-console-logger
Here is the example to use this package
const logger = require('magic-console-logger');
logger('success', 'Hello test success');
logger('error', 'Hello test error');
logger('info', 'Hello test info');
It will console
Success In Green color Hello test success Error In Red color Hello test error Info In Skyblue color Hello test info
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Ashish Sharma - Initial work - Ashish Sharma
- Inspiration : I got this idea when i was working on a project where console logging were difficult to recognise saperatly. So I decided to create small and basic package to console log with customise color. It make easy to read success or error msg in console.