Package Exports
- picture-tuber
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (picture-tuber) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
picture-tuber
Render images on the terminal.
example
command
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