Skip to content

benbria/aha.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

About

ansi HTML adapter, in JS

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •