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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i aha

      Weekly Downloads

      143

      Version

      1.0.0

      License

      MPL-1.1 OR LGPL-2.1

      Last publish

      Collaborators

      • metelyk
      • danule
      • jwalton
      • goffrie