webpizi v1.0.0
❯ Install
$ npm install -g webpizi
❯ Usage
$ webpizi
Simple as that :)
❯ Modes
Local
The local mode means that you want to parse images that are in you machine, once you parse then to webp they will be stored in the same directory but with .webp
Deep option
Once you accept this option, this mean that any folder inside the directory you wanna parse webpizi will look for and parse images as well.
Example with deep option
├── images
│ ├── moreImages
│ │ ├── cat.png
│ ├── dog.png
│ ├── foo.png
├── public
│ ├── css
│ │ ├── **/*.css
│ ├── images
│ ├── js
│ ├── index.html
Will turn into something like this:
├── images
│ ├── moreImages
│ │ ├── cat.png
│ │ ├── cat.webp
│ ├── dog.png
│ ├── dog.webp
│ ├── foo.png
│ ├── foo.webp
├── public
│ ├── css
│ │ ├── **/*.css
│ ├── images
│ │ ├── pig.png
│ │ ├── lion.png
│ ├── js
│ ├── index.html
AWS (Buckets)
The AWS mode means that you want to parse images that are in AWS cloud, more precisely on buckets. To start with, select your profile and the region of the bucket you wanna parse, then select which bucket you wanna parse the images. All images inside the bucket will be parsed into .webp format with the same name.
Credentials: To use this feature, make sure that your credentials/profiles are configured! Please take a look at this guide AWS Credentials
❯ Credit
This CLI is built on top of prompts lib.
2 years ago