{"_id":"@akurasiudara/img2webp","_rev":"3-977b384fdc4861e367b65812f2a4c251","name":"@akurasiudara/img2webp","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"@akurasiudara/img2webp","version":"1.0.0","keywords":["webp","image","converter","cli","img2webp"],"author":{"name":"Ifan Irfansyah"},"license":"MIT","_id":"@akurasiudara/img2webp@1.0.0","maintainers":[{"name":"akurasiudara","email":"irfans.putra15@gmail.com"}],"homepage":"https://github.com/akurasiudara/img2webp#readme","bugs":{"url":"https://github.com/akurasiudara/img2webp/issues"},"bin":{"img2webp":"bin/img2webp"},"dist":{"shasum":"b500ee215bf75c68625b65fc7b7889b41e38810d","tarball":"https://registry.npmjs.org/@akurasiudara/img2webp/-/img2webp-1.0.0.tgz","fileCount":5,"integrity":"sha512-Mp1stOGA8QEY5U1Q/wO0Kf+M2BmBgMTMi8GxUiK2See5IxhI6D3CzN/X6XjAItEj3Cl/7QK1/GGvajUb/PhNbw==","signatures":[{"sig":"MEQCIAr6Y2ewG1MrN4iePACBFmEvXsraBMCMKYIZyQByHKjZAiBJ7VfZyy1NtaJwn5pivKUdrKxLdiPtes+/wXnLRX/lrg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7059},"main":"index.js","engines":{"node":">=12.0.0"},"gitHead":"ff16490a3897155329e61b5fa70e780309fc1d27","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akurasiudara","email":"irfans.putra15@gmail.com"},"repository":{"url":"git+https://github.com/akurasiudara/img2webp.git","type":"git"},"_npmVersion":"11.12.1","description":"Simple command-line tool to convert images to WebP format","directories":{},"_nodeVersion":"25.9.0","dependencies":{},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/img2webp_1.0.0_1784166526841_0.4976747209729582","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@akurasiudara/img2webp","version":"1.1.0","keywords":["webp","image","converter","cli","img2webp"],"author":{"name":"Ifan Irfansyah"},"license":"MIT","_id":"@akurasiudara/img2webp@1.1.0","maintainers":[{"name":"akurasiudara","email":"irfans.putra15@gmail.com"}],"homepage":"https://github.com/akurasiudara/img2webp#readme","bugs":{"url":"https://github.com/akurasiudara/img2webp/issues"},"bin":{"img2webp":"bin/img2webp"},"dist":{"shasum":"2d5c85df6281c5cdc821fd72c519c47857aae62b","tarball":"https://registry.npmjs.org/@akurasiudara/img2webp/-/img2webp-1.1.0.tgz","fileCount":5,"integrity":"sha512-0TwtUZkya0b98h62y3PDd6CdkzqU7r6LaRhKrnyQzJZDwE/o5E+DRmzRkI3Oy90bkc9wPyyPsT5TSCD7ZC3gmA==","signatures":[{"sig":"MEYCIQDWl32vhQ42ZihArglDu49VZzSpWqGSgiAAay6o2tG4hQIhAOu/VGlOr2dAcJXm78IrX6DNo7ICGoz1RdPVizovaulH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7300},"main":"index.js","engines":{"node":">=12.0.0"},"gitHead":"7823931a0b3a17e406df4a7aabadc35e780f6d6d","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akurasiudara","email":"irfans.putra15@gmail.com"},"repository":{"url":"git+https://github.com/akurasiudara/img2webp.git","type":"git"},"_npmVersion":"11.12.1","description":"Simple command-line tool to convert images to WebP format","directories":{},"_nodeVersion":"25.9.0","dependencies":{"cwebp-bin":"^7.1.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/img2webp_1.1.0_1784167254267_0.249359074466448","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@akurasiudara/img2webp","version":"1.2.0","description":"Simple command-line tool to convert images to WebP format","main":"index.js","bin":{"img2webp":"bin/img2webp"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["webp","image","converter","cli","img2webp","bun","yarn","pnpm","cross-platform"],"author":{"name":"Ifan Irfansyah"},"license":"MIT","engines":{"node":">=12.0.0","bun":">=0.1.0"},"dependencies":{"libwebp-static":"^1.0.4"},"repository":{"type":"git","url":"git+https://github.com/akurasiudara/img2webp.git"},"bugs":{"url":"https://github.com/akurasiudara/img2webp/issues"},"homepage":"https://github.com/akurasiudara/img2webp#readme","gitHead":"5c724652bf15cec41ce11e88603a84c0267eac5b","_id":"@akurasiudara/img2webp@1.2.0","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-p4Ka9Ku8nXeQ8oh5Ztk+0rYJE4yxGMZ+lgAhK93t+tyVvJTKVouRV31+MtaJhdME9592VRKwEY1ioM/4pjBdEQ==","shasum":"71b18611c3b6ca3bafab7b54998f4219d9b0f28b","tarball":"https://registry.npmjs.org/@akurasiudara/img2webp/-/img2webp-1.2.0.tgz","fileCount":6,"unpackedSize":11554,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFw0L8YYA0EfUnZf6s4KvYN+c2k5ON3okGQVihX/Ub7TAiEAk8isHGZKRpetSxgcCApFsWLReR6nF7suubbaFnk9Ig0="}]},"_npmUser":{"name":"akurasiudara","email":"irfans.putra15@gmail.com"},"directories":{},"maintainers":[{"name":"akurasiudara","email":"irfans.putra15@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/img2webp_1.2.0_1784169667324_0.698941096905511"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-16T01:48:46.633Z","modified":"2026-07-16T02:41:07.621Z","1.0.0":"2026-07-16T01:48:46.986Z","1.1.0":"2026-07-16T02:00:54.427Z","1.2.0":"2026-07-16T02:41:07.469Z"},"bugs":{"url":"https://github.com/akurasiudara/img2webp/issues"},"author":{"name":"Ifan Irfansyah"},"license":"MIT","homepage":"https://github.com/akurasiudara/img2webp#readme","keywords":["webp","image","converter","cli","img2webp","bun","yarn","pnpm","cross-platform"],"repository":{"type":"git","url":"git+https://github.com/akurasiudara/img2webp.git"},"description":"Simple command-line tool to convert images to WebP format","maintainers":[{"name":"akurasiudara","email":"irfans.putra15@gmail.com"}],"readme":"# img2webp\r\n\r\nSimple command-line tool to convert images (JPG, JPEG, PNG) to WebP format.\r\n\r\n## Installation\r\n\r\n### Via npm\r\n```bash\r\nnpm install -g @akurasiudara/img2webp\r\n```\r\n\r\n### Via yarn\r\n```bash\r\nyarn global add @akurasiudara/img2webp\r\n```\r\n\r\n### Via pnpm\r\n```bash\r\npnpm install -g @akurasiudara/img2webp\r\n```\r\n\r\n### Via bun\r\n```bash\r\nbun install -g @akurasiudara/img2webp\r\n```\r\n\r\n### Alternative Installation Methods\r\n\r\n#### Direct from GitHub\r\n```bash\r\n# Via npm\r\nnpm install -g akurasiudara/img2webp\r\n\r\n# Via bun\r\nbun install -g github:akurasiudara/img2webp\r\n```\r\n\r\n#### Using npx (No Installation Required)\r\n```bash\r\nnpx @akurasiudara/img2webp --help\r\nnpx @akurasiudara/img2webp photo.jpg 85\r\n```\r\n\r\n#### Using bunx (Bun equivalent of npx)\r\n```bash\r\nbunx @akurasiudara/img2webp --help\r\nbunx @akurasiudara/img2webp photo.jpg 85\r\n```\r\n\r\n### Package Manager Compatibility\r\n\r\n| Package Manager | Command | Status |\r\n|----------------|---------|---------|\r\n| **npm** | `npm install -g @akurasiudara/img2webp` | ✅ Full support |\r\n| **yarn** | `yarn global add @akurasiudara/img2webp` | ✅ Full support |\r\n| **pnpm** | `pnpm install -g @akurasiudara/img2webp` | ✅ Full support |\r\n| **bun** | `bun install -g @akurasiudara/img2webp` | ✅ Full support |\r\n| **npx** | `npx @akurasiudara/img2webp` | ✅ No installation needed |\r\n| **bunx** | `bunx @akurasiudara/img2webp` | ✅ No installation needed |\r\n\r\n### Requirements\r\n- **Node.js** (v12 or higher) or **Bun runtime**\r\n- **bash** (available on Linux/macOS, on Windows use WSL or Git Bash)\r\n\r\n## Platform Support\r\n\r\n### Operating Systems\r\n- ✅ **Linux** (x64, arm64)\r\n- ✅ **macOS** (Intel, Apple Silicon)  \r\n- ✅ **Windows** (x64) with WSL/Git Bash\r\n\r\n### JavaScript Runtimes\r\n- ✅ **Node.js** v12+\r\n- ✅ **Bun** v0.1+\r\n\r\n### Package Managers\r\n- ✅ **npm** (Node Package Manager)\r\n- ✅ **yarn** (Yet Another Resource Negotiator)\r\n- ✅ **pnpm** (Performant npm)\r\n- ✅ **bun** (Fast all-in-one toolkit)\r\n\r\n## Usage\r\n\r\n### Basic Commands\r\n```bash\r\n# Show help\r\nimg2webp --help\r\n\r\n# Show version\r\nimg2webp --version\r\n```\r\n\r\n### Convert single file\r\n```bash\r\nimg2webp image.jpg 85\r\n```\r\n- `image.jpg` = input file\r\n- `85` = quality (optional, default: 80)\r\n\r\n### Batch convert all images in folder\r\n```bash\r\nimg2webp\r\n```\r\nWill convert all JPG, JPEG, and PNG files in current directory.\r\n\r\n## Output\r\n\r\nConverted files will be saved in `output/` folder with names:\r\n- Single file: `image_001.webp`\r\n- Batch: `image_001.webp`, `image_002.webp`, etc.\r\n\r\n## Examples\r\n\r\n```bash\r\n# Convert single file with quality 90\r\nimg2webp photo.jpg 90\r\n\r\n# Batch convert with default quality (80)\r\nimg2webp\r\n\r\n# Convert single file with default quality\r\nimg2webp image.png\r\n\r\n# Show help and options\r\nimg2webp --help\r\n```\r\n\r\n## Options\r\n\r\n- `-h, --help`    - Show help message\r\n- `-v, --version` - Show version information\r\n\r\n## License\r\n\r\nMIT","readmeFilename":"README.md"}