{"_id":"@caldwell619/bulk-webp-converter","_rev":"3-e200d755a46e249b457c48f3b31c4fa8","name":"@caldwell619/bulk-webp-converter","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.2":{"name":"@caldwell619/bulk-webp-converter","version":"0.0.2","license":"MIT","scripts":{"format":"prettier --write .","lint":"eslint ./ --ext .ts","type-check":"tsc --noEmit","just:build":"ts-node esbuild.config.ts","build":"sh scripts/build.sh","run:example":"ts-node example/index.ts","publish:version":"sh scripts/publish.sh"},"main":"dist/index.js","bin":{"bulk-webp-converter":"dist/bin.js"},"devDependencies":{"@types/cli-progress":"^3.11.0","@types/node":"^16.10.3","@types/tiny-async-pool":"^2.0.0","@types/yargs":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","esbuild":"^0.17.12","eslint":"^8.36.0","eslint-plugin-prettier":"^4.2.1","prettier":"^2.0.5","standard-version":"^9.1.1","ts-node":"^10.2.1","typescript":"^4.4.3"},"dependencies":{"cli-progress":"^3.12.0","tiny-async-pool":"^2.1.0","webp-converter":"^2.3.3","yargs":"^17.7.1"},"description":"CLI or Utility package for converting many photos into WebP format.","_id":"@caldwell619/bulk-webp-converter@0.0.2","dist":{"shasum":"45992793f386dff9dead34209e2241a2d7d912ad","integrity":"sha512-ownPQ4MDRosQQqGdjq6BrKWOgIYtnu+hjoVgjOePPG9O5GGUwldRtPw/BcG+Pi2IpgoTgGVTvP8Av3u6/RiMEQ==","tarball":"https://registry.npmjs.org/@caldwell619/bulk-webp-converter/-/bulk-webp-converter-0.0.2.tgz","fileCount":12,"unpackedSize":9942,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvJtd47zf4pOxrYJykEAcdgxpRK2bTFDxnQVTu3YbxMQIgW2pETmnboW9NnFw7CpuLmFwfOEhcPVhLgUNBkxEYzVA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHKYVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrUOA//RDMOffNcRB043JdIeUVJfunrW+jLOYKJnXOfNzJhNm3xRF8b\r\nFkNzALPkBzRNCg14eZN+a3idEMkMoRMesF4pdcjTJf5SymCBu94f5N0JRJSb\r\naBLYqIpA17+zzcypRdcUN6h0rHseAmwxcEzrme3Buo9TZcVuFmG8eMU+xMtk\r\ny0ajTQnfG60xGC4sHvKwLnaCYaSYfn/1y67VncvwijBMCKKK/4/gxLkN5xKe\r\nx40zrmB1WzT811QSl2VeWLwLDPlnTq3BaDT0fJ7RDL8R3Dhh7rJWfqgXwJ5A\r\nitkQ7TPkWUo8Zha3LAUhsyFljMjfhnTkF//4rTt+AC4C6T++mKCYNCPC1P/k\r\nQ91TAhEy4ID3E41TKIJXTJwMfywNeUxkfdr02eas94bUoTAUPDCjvfrMNGXU\r\nTdLJCayQJySRJk79m7CxhmlBp9RjZ0a8RAtDhx09k+h8c0IlV31cTWHqR8wm\r\njcvya7qpV0932e/GRRZdg4Yg3yJb+HFx2pTJ4OUXriiYkPpOaPpwmOz7y+pz\r\n/xFHpDKLmjGiU0hos3jKQnl2Tylavel44M4qeXkDSntoAqmTH6zEwCepbqoz\r\nXpOxV/80eeIf2n4Mj0CoJ6FdItqrpXYVzNSUxUVdGtvRDnO8waPzHyuv+vE2\r\n7jevCCbP4buYEGLzOh85zCnNtEfvkxMqQOc=\r\n=1hWn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"caldwell619","email":"caldwell8814@gmail.com"},"directories":{},"maintainers":[{"name":"caldwell619","email":"caldwell8814@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bulk-webp-converter_0.0.2_1679599125303_0.10808527015490199"},"_hasShrinkwrap":false},"0.0.3":{"name":"@caldwell619/bulk-webp-converter","version":"0.0.3","license":"MIT","scripts":{"format":"prettier --write .","lint":"eslint ./ --ext .ts","type-check":"tsc --noEmit","just:build":"ts-node esbuild.config.ts","build":"sh scripts/build.sh","run:example":"ts-node example/index.ts","publish:version":"sh scripts/publish.sh"},"main":"dist/index.js","bin":{"bulk-webp-converter":"dist/bin.js"},"devDependencies":{"@types/cli-progress":"^3.11.0","@types/node":"^16.10.3","@types/tiny-async-pool":"^2.0.0","@types/yargs":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","esbuild":"^0.17.12","eslint":"^8.36.0","eslint-plugin-prettier":"^4.2.1","prettier":"^2.0.5","standard-version":"^9.1.1","ts-node":"^10.2.1","typescript":"^4.4.3"},"dependencies":{"cli-progress":"^3.12.0","tiny-async-pool":"^2.1.0","webp-converter":"^2.3.3","yargs":"^17.7.1"},"description":"CLI or Utility package for converting many photos into WebP format.","_id":"@caldwell619/bulk-webp-converter@0.0.3","dist":{"shasum":"5fa935884a8e6220a649f10b3b58b66e7eb6d03e","integrity":"sha512-D1MA4H/m9WWzXmKN74hpOm4Szm9lf/DdEWnesstRQy4zC2kY5jomBqyTfgfQSD0ObZJwXYKO57Oh46eRx9K20g==","tarball":"https://registry.npmjs.org/@caldwell619/bulk-webp-converter/-/bulk-webp-converter-0.0.3.tgz","fileCount":12,"unpackedSize":10346,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCV+N6eRo5GW3FN6JFsM+uqjM123O/AcJVx2arJWsnNtgIhAIUAioi/U+I93YA5ydfXyC8D1cw6T1x0J/BkRI8RLuk2"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHKaJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrjmA/9FIY4hlwnWTtl4r/3+FaZw9uTRTzirlGJVD4RxJRPYBiLtWe0\r\nbCNMjBIFWySw/GR6Xvf9MQiDABVLE3BqdNe3YxveBrraLr2K+94VrGk/lPQe\r\nj0q/i+gcfyy/G6yuMr41ye8rtbv6cDhEVu/cuztEsfvtt6+0IOh8MwbgXQbm\r\nMMAJPlAaPmFXIExfAq4ZKZ9cypVrTcMZQrOKRpKoQezI021t3ZiYcxVjROL4\r\nHuFZagLrMoDu5Z1amI32vXTnerv1jwj0pXZYSXTFBBF1JnW+AakQRhX8JwM0\r\nEMX43jTkGNlL0g5InneP84Z/6Ad/fQPENVaINJsOr35bjqg3sbeo3K1CUwdD\r\nGqPh4V25NGB/4OM5yh+qlE5IZHXJsIdyRD6b4aLKjH42reA9ODNPo2bedSu9\r\nXUOUofYLCnYMcYVLJjASLxPWG4vyTWOw+tpbzmGXpx8MWa4ueFbVc3SuWUUU\r\nEb7DNoraoRvADkIbdHEJg+q9e4P9/OScFKrzRzcPlE90XMCcR2TrOajXMYHT\r\nxCVC8r5UhqOs52VLou4FDWw301BUf5jGacZ7bOTrfBOqeZo4joP8PtgvVvm9\r\nlTMk4vi3Nlva6E6Dlqcr6oMEwI7bSSQPuyahOKjN44toyIUaRxjHt5VrmsS3\r\nyFpcRa49CawhR5L6pho4VlWuR+/A7cVGguo=\r\n=nDoV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"caldwell619","email":"caldwell8814@gmail.com"},"directories":{},"maintainers":[{"name":"caldwell619","email":"caldwell8814@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bulk-webp-converter_0.0.3_1679599241665_0.7822276097628471"},"_hasShrinkwrap":false},"0.0.4":{"name":"@caldwell619/bulk-webp-converter","version":"0.0.4","license":"MIT","scripts":{"format":"prettier --write .","lint":"eslint ./ --ext .ts","type-check":"tsc --noEmit","just:build":"ts-node esbuild.config.ts","build":"sh scripts/build.sh","run:example":"ts-node example/index.ts","publish:version":"sh scripts/publish.sh"},"main":"dist/index.js","bin":{"bulk-webp-converter":"dist/bin.js"},"devDependencies":{"@types/cli-progress":"^3.11.0","@types/node":"^16.10.3","@types/tiny-async-pool":"^2.0.0","@types/yargs":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","esbuild":"^0.17.12","eslint":"^8.36.0","eslint-plugin-prettier":"^4.2.1","prettier":"^2.0.5","standard-version":"^9.1.1","ts-node":"^10.2.1","typescript":"^4.4.3"},"dependencies":{"cli-progress":"^3.12.0","clipanion":"^3.2.0","tiny-async-pool":"^2.1.0","webp-converter":"^2.3.3","yargs":"^17.7.1"},"description":"CLI or Utility package for converting many photos into WebP format.","_id":"@caldwell619/bulk-webp-converter@0.0.4","dist":{"shasum":"961442673901b13c22d4bfc2265f7819dda3931b","integrity":"sha512-HrADSpL7H3pAz91FhAJZT+N7Bq95eZBh907BSU6u0mkSy8eyjRybEAslznz4hjqsFgLhvIGDh35To0TD4qI/FA==","tarball":"https://registry.npmjs.org/@caldwell619/bulk-webp-converter/-/bulk-webp-converter-0.0.4.tgz","fileCount":12,"unpackedSize":11073,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD60eGhwBq75O+V30LSFuufVTCHc3ry4WNuICXLMI974AIgOhV49TU9fbsLaUfbAqTlXAcLRIbqfqUdZGF2s4JCvVg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJFL+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrzlA//Z4Fq3K9Dqg6M7ZC/svpOyHiIf32O7jd+4RGd34bMvMC/jN/8\r\nxFD7xy08p4m3yHvER8RtDmH6AdCZu6bWfIgopdUmvk/5YBWHNwWlIWVczZGE\r\nPJr7nZs9a0G2yDvNdMM8Uy2eKZDOt3+0lPGQGmxixlMLLtwG967TsTUZAT7I\r\nqRKq6+M3k80BApF23MLwMjvQFdhlrYMbvrQmzChqxeaQVwy3tqFg05UuipwD\r\nnC0GeoNjG2UdGHn8mY9hIYjsDnIaMlW4T7XUbpKrcPCvS+KEVLRf47FCllxf\r\nuaHCbGop6VCBUpY4RJyqRoopJjlh3vGT2FbQuAx70QA5eN9UfFKUEJmjELCS\r\npOvK8jeVAcR817zgOIQF9ISHFkougBT0MGM3/imhTdspuKxJcNqtDMpwf8FY\r\nxmCp+dNMswtTpX3UpS3Cu7C/kXcsA+kKNmyxnH/YRWS7RIF4uDGUbAo4BLU4\r\n7tKazGjDtAaYRVnkrqBDBvPk7wtRiHQz7iVQiu2Rk09Xh16ywYLo40AUfSJh\r\n66++D06YPjVPvKQMad2/o7B3tGaOm70yf/NoN6MwsIjFw1I8GALrouAw5LWB\r\nx40WrAMaxpWWuSVfNR3RUMzz7L729CEEsbnr2N2SZK+SZ0PVC2js1tGhcP7B\r\nYjeMxDUJbvuPqv9Zagg6sd8OOCFCQGV9iiY=\r\n=LYJv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"caldwell619","email":"caldwell8814@gmail.com"},"directories":{},"maintainers":[{"name":"caldwell619","email":"caldwell8814@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bulk-webp-converter_0.0.4_1680102141978_0.42386149620139557"},"_hasShrinkwrap":false},"0.0.5":{"name":"@caldwell619/bulk-webp-converter","version":"0.0.5","license":"MIT","scripts":{"format":"prettier --write .","lint":"eslint ./ --ext .ts","type-check":"tsc --noEmit","just:build":"ts-node esbuild.config.ts","build":"sh scripts/build.sh","run:example":"ts-node example/index.ts","release":"sh scripts/publish.sh"},"main":"dist/index.js","bin":{"bulk-webp-converter":"dist/bin.js"},"devDependencies":{"@types/cli-progress":"^3.11.0","@types/node":"^16.10.3","@types/tiny-async-pool":"^2.0.0","@types/yargs":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","esbuild":"^0.17.12","eslint":"^8.36.0","eslint-plugin-prettier":"^4.2.1","prettier":"^2.0.5","standard-version":"^9.1.1","ts-node":"^10.2.1","typescript":"^4.4.3"},"dependencies":{"cli-progress":"^3.12.0","clipanion":"^3.2.0","tiny-async-pool":"^2.1.0","webp-converter":"^2.3.3","yargs":"^17.7.1"},"description":"CLI or Utility package for converting many photos into WebP format.","_id":"@caldwell619/bulk-webp-converter@0.0.5","dist":{"shasum":"25f45280c84b4f249b44b449cb204be37806097a","integrity":"sha512-d+fl/WXfchvIllUYpmjPb8gcLLiBq+jWDgoIp6U+iclt2ydPoKE16JUdmXxD27yHaGM8AnYHpWI8hsPW97FKiw==","tarball":"https://registry.npmjs.org/@caldwell619/bulk-webp-converter/-/bulk-webp-converter-0.0.5.tgz","fileCount":12,"unpackedSize":11822,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBA3WHkPpiKfmPV1S3ODqdvfn97Tv4xie0Tj2fgW4KyhAiEAwVQ/C1C7/89JMdYV/+b9J7sMQQ2FRS5hBsBhKHFKAo4="}]},"_npmUser":{"name":"caldwell619","email":"caldwell8814@gmail.com"},"directories":{},"maintainers":[{"name":"caldwell619","email":"caldwell8814@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bulk-webp-converter_0.0.5_1700083834447_0.8773261041223561"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-23T19:18:45.245Z","0.0.2":"2023-03-23T19:18:45.459Z","modified":"2023-11-15T21:30:34.785Z","0.0.3":"2023-03-23T19:20:41.800Z","0.0.4":"2023-03-29T15:02:22.118Z","0.0.5":"2023-11-15T21:30:34.626Z"},"maintainers":[{"name":"caldwell619","email":"caldwell8814@gmail.com"}],"description":"CLI or Utility package for converting many photos into WebP format.","license":"MIT","readme":"# Bulk WebP Converter\n\nCLI or Utility package for converting many photos into WebP format.\n\n## Setup\n\n```shell\n# In a code project:\nyarn add @caldwell619/bulk-webp-converter\n\n# As a one-off CLI:\nnpx @caldwell619/bulk-webp-converter -ps example/source-images/ -po example/out/\n```\n\n## Options\n\nThese options control the behavior, and can be given either by the CLI or as arguments in the code file.\n\n| Argument        | Alias | Required?          | Description                                                                                                        |\n| --------------- | ----- | ------------------ | ------------------------------------------------------------------------------------------------------------------ |\n| `pathToSource`  | `ps`  | :white_check_mark: | Relative to the **execution location**, the path to the source directory for the images to be converted            |\n| `pathToOutput`  | `po`  | :white_check_mark: | Relative to the **execution location**, the path to the output directory for the converted image output            |\n| `parallelLimit` | `pl`  | :x:                | If you'd like for many images to be processed at once, provide the limit                                           |\n| `quality`       | `q`   | :x:                | Scale of [1-100], the percentage quality you want the output to be. `100`, would be the same quality as the source |\n| `logLevel`      | `ll`  | :x:                | Either verbose, or quiet logs                                                                                      |\n\n## CLI\n\nThe aliases can be swapped with the longer version to keep this short.\n\nThe following writes the out with an image quality of 75%, doing no more than 5 at once.\n\n```shell\nnpx @caldwell619/bulk-webp-converter \\\n  -ps example/source-images/ \\\n  -po example/out/ \\\n  -q 75 \\\n  -pl 5\n```\n\n## Code\n\nIt can be imported if you'd rather create a file and run it. An example use case of this would be bulk processing on a server, or if you need this regularly on your local and throw up a folder to move photos in and out of.\n\n> :warning: **Note**\n> Keep in mind that the aliases cannot be used with code. With TypeScript, this isn't an issue but for JS, they must match the first column in the options table\n\n### Filter\n\nThere is an option only available to the code usage for filtering image paths. This could eventually make it's way to the CLI via regex, but for now is only on the code side.\n\n```js\nimport { bulkWebPConvert } from '@caldwell619/bulk-webp-converter'\n\n// relative from execution - this is called from the root\nconst pathToSource = 'example/source-images'\nconst pathToOutput = 'example/out'\n\nbulkWebPConvert({\n  pathToSource,\n  pathToOutput,\n  quality: 100,\n  parallelLimit: 1,\n  // Return `true` if you want the image processed\n  filter(path) {\n    return !path.includes('Forest')\n  },\n})\n  .then(() => {\n    process.exit()\n  })\n  .catch(() => {\n    process.exit(1)\n  })\n```\n","readmeFilename":"README.md"}