picture-tube

render images on the terminal

  • Owner: substack/picture-tube
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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

Main metrics

Overview
Name With Ownersubstack/picture-tube
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:
所有者活动
Created At2012-05-06 14:03:48
Pushed At2017-10-29 05:52:57
Last Commit At2015-07-03 15:48:17
Release Count4
Last Release Name1.0.0 (Posted on 2015-07-03 15:48:17)
First Release Name0.0.1 (Posted on 2012-05-06 19:07:49)
用户参与
Stargazers Count476
Watchers Count9
Fork Count32
Commits Count12
Has Issues Enabled
Issues Count8
Issue Open Count5
Pull Requests Count1
Pull Requests Open Count3
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private