0.0.3 • Published 4 years ago
img-pull v0.0.3
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
Parameter | Format |
---|---|
url | string |
min_size | number + unit {k,kb,m,mb,b,byte} |
max_size | number + unit {k,kb,m,mb,b,byte} or "null" |