Observed since 20 Oct, 19:20 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
2webp
A simple image converter for web developers.
A simple image converter for web developers.
Convert images asyncronously in bulk using Bun/Sharp.
Install 2webp globally using NPM
bun add -g 2webp
On Linux - make sure you have libvips
sudo apt-get install libvips-dev
When converting images 2webp will automatically batch and convert images asyncrounously. You can convert large folders of images safely with 2webp.
2webp {dir/file} {--output=/example} {--format=png/jpeg/gif/tiff/webp}
To convert all the images in the current directory to webp
The output is in current directory
2webp .
Specify output directory, convert all images in current dir
2webp . --output=./output
Convert all images in current dir to png
2webp . --format=png
To install dependencies:
bun install
To run:
bun run index.ts
This project was created using Bun.
Bun is a fast all-in-one JavaScript runtime.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
bunEnvironment{
"local_name": "bun",
"alias": false,
"peer_metadata": null
} | ^0.1.2 | runtime |
sharpEnvironment{
"local_name": "sharp",
"alias": false,
"peer_metadata": null
} | ^0.34.1 | runtime |
@types/bunEnvironment{
"local_name": "@types/bun",
"alias": false,
"peer_metadata": null
} | latest | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^5 | peer |
Source distribution
{
"shasum": "2b7f483c2276d2bbaec10b2c04e27f0a1cc217b2",
"tarball": "https://registry.npmjs.org/2webp/-/2webp-0.1.3.tgz",
"fileCount": 5,
"integrity": "sha512-TCyUPeXppekmvs+RSHulKm7zunKYjukSu76Ye77HSO3mtkRmBrE8u5hc+8XXzdp0WfKCvQkTyTbe/lULn5wbaQ==",
"signatures": [
{
"sig": "MEQCIH5GZONjR1z4DYYptoEfAIUKWehrTvihCO3iVuWzCrOQAiBTim7FKgT08s0NycGGVH5AdZKrcgYiRrI9Xt35jIcCmg==",
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
}
],
"unpackedSize": 16103
}Observed since 20 Oct, 19:20 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:ea97e49df032c73556ca64322d23b8fbb1de6a66f57759c58d012b3ff1f78e4f