npm.io
1.2.2 • Published 6 years agoCLI

log-img

Licence
MIT
Version
1.2.2
Deps
2
Size
422 kB
Vulns
0
Weekly
0
Stars
1

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?


Keywords