log-img
v1.2.2
Published
support console.log a image or print an image file into terminal
Downloads
1
Readme
This package help you to console.log image into your console or print out an image file into terminal cli
✨ Installation
log-img
can be install be installed by command:
npm i log-img
But we highly recommend using it as a global package, so you can use cli command everywhere and making sure that this package does not occupy your project hardware:
npm i -g log-img
🚀 Usage
Using as cli
log-img lenna.jpg
log-img https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png
log-img https://source.unsplash.com/random
Using as package
const logImg = require('log-img');
console.log('this is image:');
logImg(Blob_Base64_Path2File_anyJimpLibCanRead);
log-img
can log any thing that Jimp lib support. Such as path to a file, URL, dimensions, ...