Skip to content

Dtanguy/nodeColor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nodeColor

Somes colors and logging.

Colors

const color = require('nodeColor'); // Add colors and timestamps to default console.log / warn / error

Logging

const color = require('nodeColor');

color.initLogging('filename', './logFoolder'); // Write default console.log / warn / err to specified file

color.setLog('AnOtherFilename', 'LOG', 'This is a log !');
color.setLog('AnOtherFilename', 'WARN', 'This is a warning !');
color.setLog('AnOtherFilename', 'ERR', 'This is an error !');

About

Somes colors and logging.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors