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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?