Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Change your ANSI color codes into HTML `<span>`s

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 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>'
Something went wrong with that request. Please try again.