colors4strict
Node module that allows you to color your console logging, even in strict mode
Usage (Example code below:)
/* Require the colors4strict nodemodule */const colors = ; /* Your text here */var text = 'Text'; text = colors; // returns the text in whitetext = colors; // returns the text in cyantext = colors; // returns the text in magentatext = colors; // returns the text in bluetext = colors; // returns the text in yellowtext = colors; // returns the text in greentext = colors; // returns the text in redtext = colors; // returns the text in black /* This also works */text = colors; // ...console;
Removing colors
/* Example */var coloredText = colors; /* Logs the text in the blue color */console; coloredText = colors; /* Logs the text in the default cli color */console;
Disabling colors
If you wanna disable the colors pass the following argument --no-colors
to your application
Example:
node myscript.js --no-colors