0.0.3 • Published 5 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-pullUsage
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.jsValid 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" |