Change your ANSI color codes into HTML `<span>`s
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
test Added test case for reset bit Oct 31, 2012
.gitignore
.travis.yml
LICENSE
README.md
package.json

README.md

ansispan Build Status

Copyright (C) 2011 by Maciej Małecki
MIT License (see LICENSE file)

Change your ANSI color codes into HTML <span>s

Installation

npm install ansispan

Usage

var ansispan = require('ansispan');
require('colors');

ansispan('green!'.green); // => '<span style="color: green">green!</span>'