Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Change your ANSI color codes into HTML `<span>`s
JavaScript
branch: master
Failed to load latest commit information.
bin
lib add blue color
test Added test case for reset bit
.gitignore .gitignore
.travis.yml [test] Add `.travis.yml` for testing on Travis CI
LICENSE [doc] README and LICENSE
README.md [doc] Add Travis build status image
package.json [dist] Bump version to 0.0.4

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>'
Something went wrong with that request. Please try again.