# @mole-inc/cwebp-bin

> cwebp wrapper that makes it seamlessly

Latest version **9.0.5** (published 2022-03-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mole-inc/cwebp-bin
pnpm add @mole-inc/cwebp-bin
yarn add @mole-inc/cwebp-bin
bun add @mole-inc/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 | 9.0.5 |
| Published | 2022-03-01 |
| First published | 2020-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | ^12.20.0 \|\| ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 8 |
| Unpacked size | 3 MB |
| Known vulnerabilities | 0 (+12 in 1 direct dependencies) |
| Install scripts | yes |
| GitHub stars | 1 |
| Maintainers | aaharu |
| Keywords | imagemin, compress, image, img, jpeg, jpg, minify, optimize, png, webp |

## Links

- npm: https://www.npmjs.com/package/@mole-inc/cwebp-bin
- Repository: https://github.com/mole-inc/cwebp-bin
- Homepage: https://github.com/mole-inc/cwebp-bin#readme
- Issues: https://github.com/mole-inc/cwebp-bin/issues
- npm.io page: https://npm.io/package/@mole-inc/cwebp-bin

## Dependencies (8)

- [got](https://npm.io/package/got.md) ^11.8.3
- [tar](https://npm.io/package/tar.md) ^6.1.11
- [execa](https://npm.io/package/execa.md) ^6.0.0
- [tempy](https://npm.io/package/tempy.md) ^2.0.0
- [which](https://npm.io/package/which.md) ^2.0.2
- [consola](https://npm.io/package/consola.md) ^2.15.3
- [bin-version-check](https://npm.io/package/bin-version-check.md) ^5.0.0
- [@mole-inc/bin-wrapper](https://npm.io/package/@mole-inc/bin-wrapper.md) ^8.0.0

## 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

- 9.0.5 (latest) — 2022-03-01
- 9.0.4 — 2022-02-28
- 9.0.3 — 2022-02-28
- 9.0.2 — 2021-12-04
- 9.0.1 — 2021-12-04
- 9.0.0 — 2021-12-04
- 8.0.0 — 2021-07-31
- 7.0.0 — 2021-06-19
- 6.0.3 — 2020-04-30
- 6.0.2 — 2020-04-24
- 6.0.1 — 2020-04-24
- 6.0.0 — 2020-04-20

## README

# cwebp-bin [![Node CI](https://github.com/mole-inc/cwebp-bin/actions/workflows/nodejs.yml/badge.svg)](https://github.com/mole-inc/cwebp-bin/actions/workflows/nodejs.yml)

> [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/mole-inc/imagemin-webp) instead.

[![Downloads](https://badgen.net/npm/dm/@mole-inc/cwebp-bin)](https://www.npmjs.com/package/@mole-inc/cwebp-bin)
[![Version](https://badgen.net/npm/v/@mole-inc/cwebp-bin)](https://www.npmjs.com/package/@mole-inc/cwebp-bin)
[![codecov](https://codecov.io/gh/mole-inc/cwebp-bin/branch/master/graph/badge.svg)](https://codecov.io/gh/mole-inc/cwebp-bin)

## Install

```
$ npm install @mole-inc/cwebp-bin
```


## Usage

```js
import {execFile} from 'child_process';
import {cwebpBin} from '@mole-inc/cwebp-bin';

execFile(cwebpBin.path, ['input.png', '-o', 'output.webp'], err => {
	if (err) {
		throw err;
	}

	console.log('Image is converted!');
});
```


## CLI

```
$ npm install --global @mole-inc/cwebp-bin
```

```
$ cwebp --help
```


## License

This is a fork of [imagemin/cwebp-bin](https://github.com/imagemin/cwebp-bin) licensed under the MIT License.

see license file and vendor/cwebp-license.txt file.

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