npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

console-jpeg

0.0.3 • Public • Published

console-jpeg

Print JPEG images to terminal output

demo

demo result

Usage

  • install
npm install console-jpeg
  • import
var consoleJpeg = require('console-jpeg');
  • attach to console
var image = require('fs').readFileSync(__dirname + '/nodejs-green.jpeg');
consoleJpeg.attachTo(console);
console.jpeg(image);
  • jpegStringiy
var image = require('fs').readFileSync(__dirname + '/nodejs-green.jpeg');
console.log(consoleJpeg.jpegStringify(image));

Thanks

END

install

npm i console-jpeg

Downloadsweekly downloads

5

version

0.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability