node-symbols

Colored symbols for various log levels

View on GitHub

Welcome to use node-symbols

build MIT stars npm download

Install


$ npm install node-symbols -S

Quick Start


const symbols = require('node-symbols')
console.log(symbols('tick', 'green') + ' ' + 'green~~~')
// ✔ green~~~
console.log(symbols('cross', 'red') + ' ' + 'red~~~')
// ✖ red~~~
console.log(symbols('smiley', 'blue') + ' ' + 'blue~~~')
// ㋡ blue~~~
console.log(symbols('https://www.npmjs.com', 'blue', 'underline'))
// https://www.npmjs.com - add link underline~~~

API


symbols(bol, color)

bol (string | required)

learn more you can check figures


color (string | Not required)

learn more you can check chalk API


License

MIT