Print PNG images to terminal output
Clone or download
aantthony Merge pull request #3 from ycmjason/master
Fixing issue in the argument parsing when using npm i -g
Latest commit ecd2be7 Jun 30, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin fixed terminal argument parsing May 25, 2017
demo 1.0.0 Nov 2, 2015
test 1.0.0 Nov 2, 2015
.gitignore added bin for terminal usage May 24, 2017
.npmignore 1.0.0 Nov 2, 2015
.travis.yml Add .travis.yml Nov 2, 2015
LICENSE Initial commit Nov 2, 2015
README.md added bin for terminal usage May 24, 2017
index.js transparency is based off of 0 alpha now instead of black Dec 1, 2015
package.json v1.2.1 May 25, 2017

README.md

console-png

NPM Version Build Status

Print PNG images to terminal output.

Install

To use this on your terminal:

npm install -g console-png

To use this programatically:

npm install --save console-png

Terminal Usage

> console-png
Usage: console-png [PNG FILE]...
> console-png apple.png
{image shown here}

Example Usage

require('console-png').attachTo(console);

var image = require('fs').readFileSync(__dirname + '/nodejs-green.png');

console.png(image);

Screenshot

Alternate Usage

var pngStringify = require('console-png');

var image = require('fs').readFileSync(__dirname + '/nodejs-green.png');

pngStringify(image, function (err, string) {
  if (err) throw err;
  console.log(string);
})