Typo-image
The typo plugin to draw an image in command-line (CLI)!
Installation
npm install typo --savenpm install typo-image --save
** Typo-image only supports 8-bit png(png-8) file so far. **
Maybe someday typo-image will support any image format using ImageMagick. But I really doesn't have much spare time.
Demo
An available demo is located at 'demo/typo-image.js'
:
node demo/typo-image.js
Usage
var typo = output: processstdout;typo; // pay attension, this.is an async method typo;
Be free to print an image for many times, typo-image will cache the result. You could also save your output by using typo.template()
.
And there are also bunch of options to help you manage your image:
typo;
~image
'~'
is one of the typo conventions used to idenfity an asynchronous helper.
Syntax
typo;
Available options
(what's coming...)
width
Number
no support so far
height
Number
no support so far
indent
Number
supported
pixel_size
Number
supported
cache
Boolean
supported
cache_output
Path
supported