|
|
il y a 3 ans | |
|---|---|---|
| .. | ||
| index.js | il y a 3 ans | |
| package.json | il y a 3 ans | |
| readme.md | il y a 3 ans | |
ANSI escape codes for styling strings in the terminal
You probably want the higher-level chalk module for styling your strings.
$ npm install --save ansi-styles
var ansi = require('ansi-styles');
console.log(ansi.green.open + 'Hello world!' + ansi.green.close);
Each style has an open and close property.
resetbolddimitalic (not widely supported)underlineinversehiddenstrikethrough (not widely supported)blackredgreenyellowbluemagentacyanwhitegraybgBlackbgRedbgGreenbgYellowbgBluebgMagentabgCyanbgWhiteMIT © Sindre Sorhus