0.0.2 • Published 3 years ago

alterchrome v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

AlterChrome

A javascript package that makes color logging easier. Based on Chalk!

Intallation

To install AlterChrome with NPM use:

npm i alterchrome --save

Usage

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

  1. Use npm package hardlog with NodeJS, then read hardlogs with less.
  2. Use only for fast prototyping or mock projects, alterchrome is not intended for full-scale development yet.
0.0.2

3 years ago

0.0.1

3 years ago