Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

aha

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aha

aha (ansi HTML adapter) in JS

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
11
-65.62%
Maintainers
2
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 03 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts