0.0.3 • Published 4 years ago

img-pull v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

img-pull :pineapple::pineapple::pineapple:

Script to download image contain in tag from url with constraint of file size

Install

npm install --save img-pull

Usage

In javascript code

const ImagePull =  new require("img-pull");

const ipull = new ImagePull();
ipull.pullSource(url, min_size, max_size);

Execute script.js in terminal

MIN_SIZE=0 MAX_SIZE=null URL=https://www.google.com node script.js #path to script.js

Valid inputs

ParameterFormat
urlstring
min_sizenumber + unit {k,kb,m,mb,b,byte}
max_sizenumber + unit {k,kb,m,mb,b,byte} or "null"
0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago