Skip to content
render images on the terminal
JavaScript
Latest commit 47d22d3 Jul 3, 2015 @substack 1.0.0
Failed to load latest commit information.
bin support stdin in command line tool Oct 14, 2014
README.markdown formatting May 6, 2012
index.js using event-stream and streaming charm api May 10, 2012
package.json 1.0.0 Jul 3, 2015

README.markdown

picture-tube

Render images on the terminal.

example

command

picture tube robot

code

var pictureTube = require('picture-tube')
var tube = pictureTube();
tube.pipe(process.stdout);

var fs = require('fs');
fs.createReadStream('robot.png').pipe(tube);

usage

Usage: picture-tube OPTIONS { file or uri }

Options:
  --cols  number of columns to use for output

methods

var pictureTube = require('picture-tube');

var tube = pictureTube(opts)

Return a readable/writable stream that reads png image data and writes ansi terminal codes.

Set the number of columns to display the image as with opts.cols.

Right now only png files work.

install

To install as a library, with npm do:

npm install picture-tube

To install the command-line tool, with npm do:

npm install -g picture-tube

license

MIT

Something went wrong with that request. Please try again.