opensoars_cls

0.0.10 • Public • Published

cls

Build Status Coverage Status Dependency Status Development Dependency Status

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

/opensoars_cls/

    Package Sidebar

    Install

    npm i opensoars_cls

    Weekly Downloads

    14

    Version

    0.0.10

    License

    none

    Last publish

    Collaborators

    • opensoars