google-image-downloader-cli
Advanced tools
Comparing version 2.1.0 to 2.1.1
#!/usr/bin/env node | ||
export {}; | ||
//# sourceMappingURL=cli.d.ts.map |
@@ -11,1 +11,2 @@ declare type ImageSize = "large" | "medium" | "icon"; | ||
export {}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -10,3 +10,3 @@ "use strict"; | ||
cheerio_httpcli_1.default.set('followMetaRefresh', false); | ||
var dir = path_1.default.join(process.cwd(), 'images'); | ||
var dir = path_1.default.join(process.cwd(), Date.now().toString()); | ||
var count = 0; | ||
@@ -24,8 +24,8 @@ var page = 1; | ||
result.$("img[class='rg_ic rg_i']").download(); | ||
page++; | ||
downloadImages(options); | ||
page++; | ||
}) | ||
.catch(function () { | ||
console.info('process exit.'); | ||
process.exit(1); | ||
.catch(function (error) { | ||
if (error.message !== 'no content') | ||
console.error(error); | ||
}); | ||
@@ -32,0 +32,0 @@ } |
{ | ||
"name": "google-image-downloader-cli", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Google image downloader CLI", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
6987
9