alterchrome

0.0.2 • Public • Published

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.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i alterchrome

    Weekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    3.82 kB

    Total Files

    4

    Last publish

    Collaborators

    • ray-voice