@fle/dye

0.0.1 • Public • Published

dye

version

Stdout colorful log in terminal.

Tips: It's a pure package without install others.

Installation

npm install @fle/dye

Usage

const dye = require('@fle/dye');

// color
console.log(dye.green('green'));
console.log(dye.help('help'));

// style
console.log(dye.bold('bold'));

// background
console.log(dye.bgRed('background red'));

// mixed
console.log(dye.red.bgWhite.bold('red bgGreen bold'));

API

color

  • gray
  • black
  • white
  • green
  • yellow
  • blue
  • red
  • cyan
  • magenta

style

  • bold
  • inverse
  • underline
  • italic (not work at mac)
  • strikethrough (not work at mac)

background

  • bgBlack
  • bgWhite
  • bgGreen
  • bgYellow
  • bgBlue
  • bgRed
  • bgCyan
  • bgMagenta

Readme

Keywords

Package Sidebar

Install

npm i @fle/dye

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

4.89 kB

Total Files

6

Last publish

Collaborators

  • ansenhuang