col-log

0.0.9 • Public • Published

color-logger

A simple logger which takes log-level and color as input and displays the corresponding output.
Log-levels include :

  • log
  • info
  • warn
  • error

The function takes 3 parameters :

  • @params1(type: string) - log-level
  • @params2(type: string) - color
  • @params3(type: string) - text

Install :

npm install col-log

Code:

import colog from 'col-log';
 
colog("log","green","Hey how you doin?");

Package Sidebar

Install

npm i col-log

Weekly Downloads

2

Version

0.0.9

License

MIT

Last publish

Collaborators

  • dalalayan1