picture-tube
render 256 color images on the terminal
Last updated 13 years ago by substack .
MIT · Repository · Original npm · Tarball · package.json
$ npm install picture-tube 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (9 years ago)

6 Versions

  • 1.0.0                                ...           9 years ago
  • 0.0.4                                ...           13 years ago
  • 0.0.3                                ...           13 years ago
  • 0.0.2                                ...           13 years ago
  • 0.0.1                                ...           13 years ago
  • 0.0.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE