npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

aha

1.0.0 • Public • Published

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')));
});

Keywords

none

install

npm i aha

Downloadsweekly downloads

109

version

1.0.0

license

MPL-1.1 OR LGPL-2.1

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability