You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 years ago | |
|---|---|---|
| .. | ||
| index.js | 2 years ago | |
| package.json | 2 years ago | |
| readme.md | 2 years ago | |
readme.md
ansi-styles 
ANSI escape codes for styling strings in the terminal
You probably want the higher-level chalk module for styling your strings.
Install
$ npm install --save ansi-styles
Usage
var ansi = require('ansi-styles');
console.log(ansi.green.open + 'Hello world!' + ansi.green.close);
API
Each style has an open and close property.
Styles
General
resetbolddimitalic(not widely supported)underlineinversehiddenstrikethrough(not widely supported)
Text colors
blackredgreenyellowbluemagentacyanwhitegray
Background colors
bgBlackbgRedbgGreenbgYellowbgBluebgMagentabgCyanbgWhite
License
MIT © Sindre Sorhus
