Comparing version 0.7.4 to 0.8.0
#!/usr/bin/env node | ||
import{a as r,b,c as w}from"./chunk-HVSPWQG2.js";import x from"cli-progress";import $ from"meow";import v from"fs";import S from"path";import g from"chalk";function y(e,i){if(!i.increment)return e;if(e.length!==1)throw new r("Only one URL is allowed in increment mode");if(!e[0].includes("{i}"))throw new r("The URL must contain {i} placeholder for the index");let{start:a=0,end:n=0}=i;if(a<0)throw new r("Start value must be greater than or equal to 0");if(a>n)throw new r("Start value must be less than or equal to end value");let l=[];for(let t=a;t<=n;t+=1)l.push(e[0].replace("{i}",t.toString()));return l}var d=$(` | ||
import{a as r,b,c as w}from"./chunk-LXFRP3GR.js";import x from"cli-progress";import $ from"meow";import v from"fs";import S from"path";import g from"chalk";function y(e,i){if(!i.increment)return e;if(e.length!==1)throw new r("Only one URL is allowed in increment mode");if(!e[0].includes("{i}"))throw new r("The URL must contain {i} placeholder for the index");let{start:a=0,end:n=0}=i;if(a<0)throw new r("Start value must be greater than or equal to 0");if(a>n)throw new r("Start value must be less than or equal to end value");let l=[];for(let t=a;t<=n;t+=1)l.push(e[0].replace("{i}",t.toString()));return l}var d=$(` | ||
USAGE | ||
@@ -4,0 +4,0 @@ $ imgdl <url> ... [OPTIONS] |
@@ -62,3 +62,3 @@ type ImageOptions = { | ||
/** | ||
* The directory to save the image to. Can be relative or absolute. | ||
* The path of the directory where the image is saved. | ||
*/ | ||
@@ -65,0 +65,0 @@ directory: string; |
@@ -1,2 +0,2 @@ | ||
import{c as a}from"./chunk-HVSPWQG2.js";export{a as default}; | ||
import{c as a}from"./chunk-LXFRP3GR.js";export{a as default}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "img-dl", | ||
"version": "0.7.4", | ||
"version": "0.8.0", | ||
"description": "Download image(s), by command or programmatically", | ||
@@ -41,2 +41,3 @@ "type": "module", | ||
"execa": "^9.3.0", | ||
"file-type": "^19.3.0", | ||
"msw": "^2.3.1", | ||
@@ -55,3 +56,4 @@ "prettier": "^3.3.2", | ||
"p-queue": "^8.0.1", | ||
"sanitize-filename": "^1.6.3" | ||
"sanitize-filename": "^1.6.3", | ||
"sharp": "^0.33.4" | ||
}, | ||
@@ -58,0 +60,0 @@ "scripts": { |
@@ -247,4 +247,7 @@ # img-dl | ||
The file extension. If not specified, the original extension will be used. If the original extension is not available, 'jpg' will be used. | ||
The image extension. The extension must be any of [`sharp` supported formats](https://sharp.pixelplumbing.com/#formats). | ||
If not specified, the original extension will be used. | ||
If the original extension is not available, 'jpg' will be used. | ||
##### `headers` | ||
@@ -251,0 +254,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53524
170
334
7
14
+ Addedsharp@^0.33.4
+ Added@emnapi/runtime@1.3.1(transitive)
+ Added@img/sharp-darwin-arm64@0.33.5(transitive)
+ Added@img/sharp-darwin-x64@0.33.5(transitive)
+ Added@img/sharp-libvips-darwin-arm64@1.0.4(transitive)
+ Added@img/sharp-libvips-darwin-x64@1.0.4(transitive)
+ Added@img/sharp-libvips-linux-arm@1.0.5(transitive)
+ Added@img/sharp-libvips-linux-arm64@1.0.4(transitive)
+ Added@img/sharp-libvips-linux-s390x@1.0.4(transitive)
+ Added@img/sharp-libvips-linux-x64@1.0.4(transitive)
+ Added@img/sharp-libvips-linuxmusl-arm64@1.0.4(transitive)
+ Added@img/sharp-libvips-linuxmusl-x64@1.0.4(transitive)
+ Added@img/sharp-linux-arm@0.33.5(transitive)
+ Added@img/sharp-linux-arm64@0.33.5(transitive)
+ Added@img/sharp-linux-s390x@0.33.5(transitive)
+ Added@img/sharp-linux-x64@0.33.5(transitive)
+ Added@img/sharp-linuxmusl-arm64@0.33.5(transitive)
+ Added@img/sharp-linuxmusl-x64@0.33.5(transitive)
+ Added@img/sharp-wasm32@0.33.5(transitive)
+ Added@img/sharp-win32-ia32@0.33.5(transitive)
+ Added@img/sharp-win32-x64@0.33.5(transitive)
+ Addedcolor@4.2.3(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcolor-string@1.9.1(transitive)
+ Addeddetect-libc@2.0.3(transitive)
+ Addedis-arrayish@0.3.2(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedsharp@0.33.5(transitive)
+ Addedsimple-swizzle@0.2.2(transitive)
+ Addedtslib@2.8.1(transitive)