- ..
- index.js770 B
- package.json2.2 KB
- readme.md1.1 KB
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