Comparing version 0.0.4 to 0.1.0
@@ -12,4 +12,4 @@ const yargs = require("yargs"); | ||
type: "string", | ||
default: process.cwd(), | ||
description: "Output directory", | ||
default: "", | ||
description: "Output directory, default is same directory as input", | ||
}) | ||
@@ -16,0 +16,0 @@ .option("quality", { |
{ | ||
"name": "avif", | ||
"version": "0.0.4", | ||
"version": "0.1.0", | ||
"description": "Command line utility to convert images to AVIF", | ||
@@ -27,9 +27,9 @@ "author": "Lovell Fuller <npm@lovell.info>", | ||
"dependencies": { | ||
"glob": "^7.1.7", | ||
"sharp": "^0.29.0", | ||
"yargs": "^17.1.1" | ||
"glob": "^7.2.0", | ||
"sharp": "^0.29.3", | ||
"yargs": "^17.3.0" | ||
}, | ||
"devDependencies": { | ||
"prettier": "^2.3.2" | ||
"prettier": "^2.5.1" | ||
} | ||
} |
# avif-cli | ||
Command line utility to convert images to AVIF, requires Node.js 10+ | ||
Command line utility to convert images to AVIF, requires Node.js 12.13.0+ | ||
@@ -18,15 +18,18 @@ ## Usage | ||
``` | ||
--input Input file name(s), supports globs/wildcards | ||
--input Input file name(s), supports globs/wildcards | ||
[string] [default: "*.{jpg,jpeg,tif,tiff,webp,png,gif,svg}"] | ||
--output Output directory [string] [default: "/home/user"] | ||
--quality Quality vs file size, 1 (lowest/smallest) to 100 | ||
(highest/largest) [number] [default: 50] | ||
--speed CPU effort vs file size, 0 (slowest/smallest) to 8 | ||
(fastest/largest) [number] [default: 5] | ||
--lossless Use lossless compression [boolean] [default: false] | ||
--overwrite Allow existing output files to be overwritten | ||
--output Output directory | ||
[string] [default: "/home/user"] | ||
--quality Quality vs file size, 1 (lowest/smallest) to 100 | ||
(highest/largest) [number] [default: 50] | ||
--speed CPU effort vs file size, 0 (slowest/smallest) to 8 | ||
(fastest/largest) [number] [default: 5] | ||
--lossless Use lossless compression [boolean] [default: false] | ||
--chromaSubsampling Set to '4:2:0' to use chroma subsampling | ||
[string] [default: "4:4:4"] | ||
--overwrite Allow existing output files to be overwritten | ||
[boolean] [default: false] | ||
--verbose Write progress to stdout [boolean] [default: false] | ||
-h, --help Show help [boolean] | ||
--version Show version number [boolean] | ||
--verbose Write progress to stdout [boolean] [default: false] | ||
-h, --help Show help [boolean] | ||
--version Show version number [boolean] | ||
``` | ||
@@ -33,0 +36,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
16892
49
Updatedglob@^7.2.0
Updatedsharp@^0.29.3
Updatedyargs@^17.3.0