0.0.2 • Published 4 years ago
alterchrome v0.0.2
AlterChrome
A javascript package that makes color logging easier. Based on Chalk!
Intallation
To install AlterChrome with NPM use:
npm i alterchrome --saveUsage
Alternating background and font color in console output:
var alterchrome = require('alterchorme');
// assuming primary color is red and secondary is black
console.log(alterchrome.color("string here")); // logs string with red bg and black font
console.log(alterchrome.color("string here")); // logs string with black bg and red font
console.log(alterchrome.color("string here")); // logs string with red bg and black font
console.log(alterchrome.color("string here")); // logs string with black bg and red font To change Primary color to green:
alterchrome.setPrimaryColor("green");To change Secondary color to white:
alterchrome.setSecondaryColor("white");Tips
- Use npm package
hardlogwith NodeJS, then read hardlogs withless. - Use only for fast prototyping or mock projects,
alterchromeis not intended for full-scale development yet.