2.2.0 • Published 4 years ago
charextra v2.2.0
Charextra
Extra chars for Node.js and Typescript.
github repository
Main page
NPM
How to use?
Install:
npm i charextra
Pattern:
charextra.<symbol name>
For example:
const charextra = require('charextra')
const log = console.log
log(charextra.check)
Run it and you'll see a green tick (In fact, it's a green square root symbol)
Supported charactors
symbol name | charactor |
---|---|
sqrt | A square root symbol |
check | A green tick(green square root symbol) |
X | A red 'X' |
failed | The same as above |
invaild | The same as above |
happy | :-) |
sad | :-( |
laugh | :-D |
fatal | A bold red string "FATAL" |
error | A red string "ERROR" |
warn | A yellow string "WARN" |
info | A green string "INFO" |
copyright | The symbol © |
registry | The symbol ® |
block | A block with black filling |
square | A square with black filling |
square_without_filling | A square without filling |
swf | The same as above |
TM | The symbol ™ |
sum | The symbol ∑ |
delta | The symbol ∆ |
ge | Greater or equal |
le | Less or equal |
infinity | The symbol ∞ |
alpha | The symbol α |
beta | The symbol β |
gamma | The symbol γ |
line\<num> | A line with \<num> '-' e.g. line30 -> '------------------------------' \<num> can be 10, 20, 30, 80 and 100 |
Do you have any other good idea? Send to my email sjc.0910@qq.com!