3.0.1 • Published 11 months ago

webpconvert v3.0.1

Weekly downloads
9
License
MIT
Repository
github
Last release
11 months ago

WebpConvert

CLI Converter from png/jpg images to webp

Build Status version downloads MIT License

contributions welcome Watch on GitHub Star on GitHub Tweet

Usage

  1. Install webpconvert
    npm install -g webpconvert
  2. Run this command

    webpconvert [source] [target] [options]
    
    # Example
    webpconvert
    webpconvert sample-images
    webpconvert sample-images -q 50
    webpconvert sample-images output
    webpconvert sample-images -m
    webpconvert sample-images/KittenJPG.jpg

Help

webpconvert --help

Use npx for one time usage

npx webpconvert [source] [target] [options]

Options

OptionOption aliasDescriptionTypeDefault
-p--prefixSpecify the prefix of output filename.string""
-s--suffixSpecify the suffix of output filename.string""
-q--qualitySpecify the quality of webp image. Lower values yield better compression but the least image quality.number80
-r--recursiveInclude files in sub-folders. Will be ignored if the source is a file.boolean
-m--muteDisable output messages.boolean
-h--helpShow help.boolean
-v--versionShow version number.boolean

Contributing

  1. Fork this repo
  2. Develop
  3. Create pull request
  4. Tag @rizqirizqi for review
  5. Merge~~

Start

yarn start [source] [target] [options]

Test

# Run test:
yarn test
# Update snapshot files:
yarn test -u

Lint

yarn lint

License

MIT

3.0.1

11 months ago

3.0.0

11 months ago

2.2.0

2 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.4

3 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago