2webp
v0.1.6
Published
A simple image converter for web developers.
Readme
2webp
A simple image converter for web developers.
Convert images asyncronously in bulk using Bun/Sharp.
Install (global)
Install 2webp globally using NPM
bun add -g 2webpOn Linux - make sure you have libvips
sudo apt-get install libvips-devHow to Use
When converting images 2webp will automatically batch and convert images asyncrounously. You can convert large folders of images safely with 2webp.
Syntax
2webp {dir/file} {--output=/example} {--format=png/jpeg/gif/tiff/webp}Examples
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=./outputConvert all images in current dir to png
2webp . --format=pngDevelopment
To install dependencies:
bun installTo run:
bun run index.tsThis project was created using Bun.
Bun is a fast all-in-one JavaScript runtime.
