1.0.1 • Published 7 years ago

figures-colored v1.0.1

Weekly downloads
8
License
CC0-1.0
Repository
github
Last release
7 years ago

figures-colored

npm figures in common colors.

figures-colored

install

npm install figures-colored

example

const {tick, cross} = require('figures-colored')

console.log(`It worked ${tick}`) // green checkmark
console.log(`It failed ${cross}`) // red X

The long way (manual coloring):

const {tick, cross} = require('figures')
const {green, red} require('chalk')

console.log(`It worked ${green(tick)}`) // green checkmark
console.log(`It failed ${red(cross)}`) // red X

more colors

Submit a PR or open an issue with suggestions for other figures that should be colored!