0.0.10 • Published 11 years ago
opensoars_cls v0.0.10
cls
Colorized command line logging made easy.
Dependencies
- None
Install
npm install opensoars_cls
API
cls(text, [color], [style])
Where text is the string or object to style, color is an optional color string and style is an optional style string or an array of style strings.
Example
var cls = require('opensoars_cls');
var styled_string = cls('Hello, world!', 'red', ['bold', 'underline']);
console.log(styled_string);Options
- 9 Colors
- white
- grey
- black
- blue
- cyan
- green
- magenta
- red
- yellow
- 5 Styles (if supported by your os its terminal)
- bold
- italic
- underline
- inverse
- strikethrough