figures-colored

1.0.1 • Public • Published

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!

Package Sidebar

Install

npm i figures-colored

Weekly Downloads

1

Version

1.0.1

License

CC0-1.0

Last publish

Collaborators

  • m59