picture-tuber
render 256 color images on the terminal
Last updated 7 years ago by lirantal .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install picture-tuber 
SYNC missed versions from official npm registry.

picture-tuber

Render images on the terminal.

example

command

picture tube robot

code

var pictureTube = require("picture-tuber");
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-tuber");

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-tuber

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

npm install -g picture-tuber

license

MIT

Current Tags

  • 2.0.0                                ...           latest (7 years ago)

3 Versions

  • 2.0.0                                ...           7 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |