log-img

1.2.2 • Public • Published

Welcome to log-img 👋

result

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, ...

Go to Jimp?


Package Sidebar

Install

npm i log-img

Weekly Downloads

1

Version

1.2.2

License

MIT

Unpacked Size

432 kB

Total Files

9

Last publish

Collaborators

  • neimadvn