0.2.9 • Published 4 years ago
colourized v0.2.9
Colourized
An open source and easy-to-use library to colour your Node.js console output.

Installation
npm i colourizedUsage
const color = require('colourized');Examples
const color = require('colourized');
/* import color from 'colourized'; */
color.red('Red text');
color.red.bold('Red text and also bold');
color.red.inverse('Inverted red text');| Text colours | Light text colours | Background colours | Light Background colours | Styles |
|---|---|---|---|---|
| red | lightRed | bgRed | bgLightRed | underline |
| black | lightBlack | bgBlack | bgLightCyan | italic |
| magenta | lightYellow | bgCyan | bgLightGrey (bgLightGray) | dim |
| cyan | lightWhite | bgGrey (bgGray) | bgLightWhite | inverse |
| white | lightCyan | bgWhite | bgLightBlue | bold |
| grey (gray) | lightGrey (lightGray) | bgBlue | bgLightGreen | |
| blue | lightMagenta | bgGreen | bgLightMagenta | |
| green | lightBlue | bgMagenta | bgLightYellow | |
| yellow | lightGreen | bgYellow |
Licensing
Colourized is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.