# dwebp-bin

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

Latest version **2.0.1** (published 2021-11-11) · MIT license · 0 weekly downloads

## Install

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

Provides the command `dwebp`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2021-11-11 |
| First published | 2014-06-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | ^12.20.0 \|\| ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 2 |
| Unpacked size | 3.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 3 |
| Author | Shogo Sensui |
| Maintainers | 1000ch |
| Keywords | image, img, jpg, jpeg, png, gif, webp |

## Links

- npm: https://www.npmjs.com/package/dwebp-bin
- Repository: https://github.com/1000ch/dwebp-bin
- Issues: https://github.com/1000ch/dwebp-bin/issues
- npm.io page: https://npm.io/package/dwebp-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.1.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

- 2.0.1 (latest) — 2021-11-11
- 2.0.0 — 2021-10-26
- 1.0.0 — 2020-07-03
- 0.3.0 — 2020-07-03
- 0.2.0 — 2020-07-03
- 0.1.6 — 2014-08-27
- 0.1.5 — 2014-07-12
- 0.1.4 — 2014-06-09
- 0.1.3 — 2014-06-05
- 0.1.1 — 2014-06-05
- 0.1.0 — 2014-06-05

## README

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

> [WebP](https://developers.google.com/speed/webp/) is a modern image format that provides superior lossless and lossy compression for images on the web. Using WebP, webmasters and web developers can create smaller, richer images that make the web faster.

## Install

```sh
$ npm install dwebp-bin
```

WebP requires following libraries on Linux. See [detail](https://developers.google.com/speed/webp/docs/compiling#compiling_on_unix-like_platforms).

```sh
$ sudo apt-get install libjpeg-dev libpng-dev libtiff-dev libgif-dev
```

## Usage

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

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

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

## CLI

```sh
$ npm install --global dwebp-bin
```

```sh
$ dwebp input.webp -o output.png
```

## License

[MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)

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