aha

aha (ansi HTML adapter) in JS

  • aha

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
aha
1.0.06 years ago8 years agoMinified + gzip package size for aha in KB

Readme

aha.js
Converts ANSI-colored terminal output into HTML.
A JS port of aha.

usage

var aha = require('aha'),
    child = require('child_process');

child.exec('git log --color=always', { encoding: 'hex' }, function(error, stdout, stderr) {
    // consumes and produces a Buffer
    process.stdout.write(aha(new Buffer(stdout, 'hex')));
});