picture-tube

render images on the terminal

  • 所有者: substack/picture-tube
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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

主要指标

概览
名称与所有者substack/picture-tube
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证
所有者活动
创建于2012-05-06 14:03:48
推送于2017-10-29 05:52:57
最后一次提交2015-07-03 15:48:17
发布数4
最新版本名称1.0.0 (发布于 2015-07-03 15:48:17)
第一版名称0.0.1 (发布于 2012-05-06 19:07:49)
用户参与
星数476
关注者数9
派生数32
提交数12
已启用问题?
问题数8
打开的问题数5
拉请求数1
打开的拉请求数3
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?