{"_id":"@cammarj/png2webp","name":"@cammarj/png2webp","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"type":"module","name":"@cammarj/png2webp","version":"1.0.0","description":"Fast PNG to WebP converter CLI","main":"dist/index.js","bin":{"png2webp":"bin/png2webp.js"},"scripts":{"build":"tsc","dev":"tsx src/index.ts","prepare":"npm run build","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["png","webp","converter","cli","image-optimization"],"author":{"name":"Raul Camacho"},"license":"MIT","engines":{"node":">=18.0.0"},"dependencies":{"commander":"^12.1.0","sharp":"^0.33.5"},"devDependencies":{"@types/node":"^22.10.0","tsx":"^4.19.0","typescript":"^5.7.0"},"_id":"@cammarj/png2webp@1.0.0","gitHead":"e014a8c967752ff9f2c98b082cd764427bd37572","types":"./dist/index.d.ts","_nodeVersion":"24.6.0","_npmVersion":"11.5.1","dist":{"integrity":"sha512-8ROTRCc9lIjKilFOy2MI4q/wr34ByuqoWqJH8h52zzTcZNO18yrZv/j1TFcRsJKS+F6PR2tT3+HoYMPDlQjwrA==","shasum":"ba300ce3f460ff57124188281c1b2b51577aad93","tarball":"https://registry.npmjs.org/@cammarj/png2webp/-/png2webp-1.0.0.tgz","fileCount":12,"unpackedSize":20702,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAZ8nQBV/hvwazrQBBkYecB3QD2OLxSAVMXXx4M5OS+UAiEAyefDvUHqS7u3TGLmiyfqEwjOGrXbp82kKU1yqQz0MqU="}]},"_npmUser":{"name":"cammarj","email":"raulj.camacho@gmail.com"},"directories":{},"maintainers":[{"name":"cammarj","email":"raulj.camacho@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/png2webp_1.0.0_1777569503770_0.5109154158284934"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-30T17:18:23.656Z","1.0.0":"2026-04-30T17:18:23.910Z","modified":"2026-04-30T17:18:24.077Z"},"maintainers":[{"name":"cammarj","email":"raulj.camacho@gmail.com"}],"description":"Fast PNG to WebP converter CLI","keywords":["png","webp","converter","cli","image-optimization"],"author":{"name":"Raul Camacho"},"license":"MIT","readme":"# @cammarj/png2webp\n\nFast PNG to WebP converter for the command line. Built with [sharp](https://sharp.pixelplumbing.com/) for maximum performance.\n\n## Installation\n\n```bash\nnpm install -g @cammarj/png2webp\n```\n\nOr use directly with `npx`:\n\n```bash\nnpx @cammarj/png2webp image.png\n```\n\n## Usage\n\n```bash\npng2webp <input> [options]\n```\n\n### Arguments\n\n| Argument | Description |\n|----------|-------------|\n| `input`  | PNG file or directory to convert |\n\n### Options\n\n| Option | Description | Default |\n|--------|-------------|---------|\n| `-q, --quality <number>` | WebP quality (1-100) | `80` |\n| `-o, --output <path>` | Output file or directory | same as input |\n| `-r, --recursive` | Process directories recursively | `false` |\n| `-d, --delete` | Delete original PNG after conversion | `false` |\n| `-v, --verbose` | Show per-file details | `false` |\n| `-V, --version` | Show version | |\n| `-h, --help` | Show help | |\n\n### Examples\n\n```bash\n# Convert a single file\npng2webp image.png\n\n# Convert with custom quality\npng2webp image.png --quality 90\n\n# Convert all PNGs in a directory\npng2webp ./assets/\n\n# Recursive conversion\npng2webp ./assets/ --recursive\n\n# Output to specific directory\npng2webp ./assets/ --output ./optimized/\n\n# Delete originals after conversion\npng2webp ./assets/ --recursive --delete\n```\n\n## Requirements\n\n- Node.js >= 18.0.0\n\n## License\n\nMIT © Raul Camacho\n","readmeFilename":"README.md","_rev":"1-ccdd2273ca573e618e2e2ebd46692db3"}