styled-console

1.0.1 • Public • Published

Styled Console

Example

Install

npm

$ npm install styled-console

How To Use

version 1.0.0 changed.

var StyledConsole = require('styled-console');
var styledConsole = new StyledConsole; // or StyledConsole();
console.log(
    styledConsole.parse("<c:red>St<b><u>y</u>le</b>d</c:red> Con<u>so</u><b:blue>le</b:blue>.")
);

Tags

color codes list

  • black
  • red
  • green
  • yellow
  • blue
  • purple
  • cyan
  • gray
  • sblack (soft black)
  • sred (soft red)
  • sgreen
  • syellow
  • sblue
  • spurple
  • scyan
  • sgray

<c:{colorCode}> or <color:{colorCode}>

Change font color.

<b:{colorCode}> or <background:{colorCode}>

Change background color.

<b> or <strong>

Apply bold text.

<u> or <underline>

Apply underlined text.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    3
  • 1.0.0
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i styled-console

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • wan2land