paint-print
v1.0.0
Published
>JavaScript library for immutable output conversion in console
Downloads
18
Maintainers
Readme
paint-print
JavaScript library for immutable output conversion in console
Install
npm install paint-print
yarn add paint-print
pnpm add paint-print
Usage
import {paint} from 'paint-print';
console.log(paint.red("Hello world!!!"));
console.log(paint.greenBg("Hello world!!!"));
You can use call chain:
import {paint} from 'paint-print';
console.log(paint.blue.yellowBg("Hello world!!!"));
Define your own themes:
import {paint} from 'paint-print';
const warning = paint.yellow;
const error = paint.redBg;
console.log(warning("Warning"));
console.log(error("Error"));
Colors
| Front colors | Background colors | |--------------|-------------------| | black | blackBg | | red | redBg | | greenBg | greenBg | | yellow | yellowBg | | blue | blueBg | | magenta | magentaBg | | cyan | cyanBg | | white | whiteBg | | crimson | crimsonBg |