# cwebp-bin

> cwebp wrapper that makes it seamlessly available as a local dependency

Latest version **8.0.0** (published 2022-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install cwebp-bin
pnpm add cwebp-bin
yarn add cwebp-bin
bun add cwebp-bin
```

Provides the command `cwebp`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 8.0.0 |
| Published | 2022-05-06 |
| First published | 2014-06-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 2 |
| Unpacked size | 3.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 102 |
| Maintainers | nothingismagick, sindresorhus, kevva, 1000ch, xhmikosr, shinnn |
| Keywords | imagemin, compress, image, img, jpeg, jpg, minify, optimize, png, webp |

## Links

- npm: https://www.npmjs.com/package/cwebp-bin
- Repository: https://github.com/imagemin/cwebp-bin
- Homepage: https://github.com/imagemin/cwebp-bin#readme
- Issues: https://github.com/imagemin/cwebp-bin/issues
- Funding: https://github.com/imagemin/cwebp-bin?sponsor=1
- npm.io page: https://npm.io/package/cwebp-bin

## Dependencies (2)

- [bin-build](https://npm.io/package/bin-build.md) ^3.0.0
- [bin-wrapper](https://npm.io/package/bin-wrapper.md) ^4.0.1

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 8.0.0 (latest) — 2022-05-06
- 7.0.1 — 2021-11-10
- 7.0.0 — 2021-10-23
- 6.1.2 — 2021-10-20
- 6.1.1 — 2020-05-30
- 6.1.0 — 2020-05-30
- 6.0.0 — 2020-05-29
- 5.1.0 — 2019-05-25
- 5.0.0 — 2018-11-30
- 4.0.0 — 2017-12-27
- 3.2.0 — 2016-07-08
- 3.1.0 — 2016-01-31
- 3.0.0 — 2015-04-27
- 2.0.5 — 2015-03-16
- 2.0.4 — 2015-01-26
- … 13 more at https://npm.io/package/cwebp-bin/versions

## README

# cwebp-bin ![GitHub Actions Status](https://github.com/imagemin/cwebp-bin/workflows/test/badge.svg?branch=main)

> [WebP](https://developers.google.com/speed/webp/) is a new image format that provides lossless and lossy compression for images on the web. WebP lossless images are 26% smaller in size compared to PNGs. WebP lossy images are 25-34% smaller in size compared to JPEG images at equivalent SSIM index.

You probably want [`imagemin-webp`](https://github.com/imagemin/imagemin-webp) instead.


## Install

```
$ npm install cwebp-bin
```


## Usage

```js
import {execFile} from 'node:child_process';
import cwebp from 'cwebp-bin';

execFile(cwebp, ['input.png', '-o', 'output.webp'], err => {
	if (err) {
		throw err;
	}

	console.log('Image is converted!');
});
```


## CLI

```
$ npm install --global cwebp-bin
```

```
$ cwebp --help
```


## License

MIT © [Imagemin](https://github.com/imagemin)

---
_Source: https://npm.io/package/cwebp-bin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
