Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

img-dl

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

img-dl - npm Package Compare versions

Comparing version 0.7.4 to 0.8.0

dist/chunk-LXFRP3GR.js

2

dist/cli.js
#!/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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc