Welcome to use node-symbols
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)
- tick ✔
- cross ✖
- square ▇
- info ℹ
- warning ⚠
- smiley ㋡
- heart ♥
- hamburger ☰
- circleCross ⓧ
- Arbitrary string or symbols
learn more you can check figures
color (string | Not required)
- black
- red
- green
- yellow
- blue
- magenta
- cyan
- white
- gray
- redBright
- greenBright
- yellowBright
- blueBright
- magentaBright
- cyanBright
- whiteBright
learn more you can check chalk API