0.1.4 • Published 10 years ago

recolor v0.1.4

Weekly downloads
1
License
-
Repository
-
Last release
10 years ago

recolor NPM version Build Status DevDependencies Status

recolor is a terminal color formatter, supported nesting styles.

Why you need recolor ?

pseudo code: [red]foo[green]bar[/green]baz[/red]
source string: \x1b[31mfoo\x1b[32mbar\x1b[39mbaz\x1b[39m
target string: \x1b[31mfoo\x1b[0m\x1b[32mbar\x1b[0m\x1b[31mbaz\x1b[0m

See the screenshot:

screenshot

Installation

$ npm install recolor

Usage

var recolor = require('recolor');

// source string
var source = '\x1b[31mfoo\x1b[32mbar\x1b[39mbaz\x1b[39m';

// using recolor
var target = recolor(source);

License

MIT © Firede

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago