iprint
v1.0.11
Published
iPrint is the cool console logger
Downloads
12
Readme
iPrint
Hi, cosole.log(value);
is cool but it is very large syntax to type.
And,
how cool if you have to just do type
iPrint('Hi');
and adding color to the console?
Here you are!
iPrint is the cool console logger.
iPrint gives color to your "console"!
Command Line Usage
For NPM
npm install iprint
or
npm i iprint
Example
var iPrint = require('iPrint').iPrinter;
iPrint('Hi, everyone');
iPrint('Hi everyone - Magenta Color','magenta');
iPrint('Hi, everyone - Blue Background','bgblue');
iPrint('iPrintDefaultColor','cyan'); // Changes default output color from 'blue' to 'cyan'
iPrint('Hi, default color changed form blue to cyan');
General Syntax
Just type as follow
- To just print the string (default color is blue)
iPrint(value);
- To add color to your string
iPrint(value,colorValue);
- To add background color to your string
iPrint(value,backgroundColorValue);
- To change default color to your string
iPrint('iPrintDefaultColor',colorValue);
'iPrintDefaultColor' is strict notation of changing the default color of output string.
Here after output's default color will be changed.
Color Values
iPrint(value,colorValue);
- colorValue = 'blue'
- colorValue = 'red'
- colorValue = 'green'
- colorValue = 'yellow'
- colorValue = 'cyan'
- colorValue = 'white'
- colorValue = 'black'
- colorValue = 'magenta'
Background Color Values
iPrint(value,backgroundColorValue);
- colorValue = 'bgblue'
- colorValue = 'bgred'
- colorValue = 'bggreen'
- colorValue = 'bgyellow'
- colorValue = 'bgcyan'
- colorValue = 'bgwhite'
- colorValue = 'bgblack'
- colorValue = 'bgmagenta'