render 256 color images on the terminal
npm install picture-tuberRender images on the terminal.
``js
var pictureTube = require("picture-tuber");
var tube = pictureTube();
tube.pipe(process.stdout);
var fs = require("fs");
fs.createReadStream("robot.png").pipe(tube);
`
`
Usage: picture-tube OPTIONS { file or uri }
Options:
--cols number of columns to use for output
`
`js`
var pictureTube = require("picture-tuber");
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.
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
MIT