# check-for-webp

> client side browser check for webp support

Latest version **1.0.1** (published 2018-02-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install check-for-webp
pnpm add check-for-webp
yarn add check-for-webp
bun add check-for-webp
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-02-05 |
| First published | 2018-02-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Mika Rehman |
| Maintainers | 0's_and_1's |
| Keywords | webp, check webp support, webp support |

## Links

- npm: https://www.npmjs.com/package/check-for-webp
- Repository: https://github.com/Mikaayel/check-for-webp
- Issues: https://github.com/Mikaayel/check-for-webp/issues
- npm.io page: https://npm.io/package/check-for-webp

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-02-05
- 1.0.0 — 2018-02-03

## README

[![npm version](https://badge.fury.io/js/check-for-webp.svg)](https://badge.fury.io/js/check-for-webp)
# check-for-webp

Client-side check for webp support in the browser based on Canvas (IE9+).

[caniuse](https://caniuse.com/#search=webp) webp browser coverage

## Installation
```
npm install check-for-webp
```
or 
```
yarn add check-for-webp
```

## How To Use
```
import webp from 'check-for-webp'
```
The check is done once and the result cached.

```
console.log(webp); // will output [boolean] true || false try it on FireFox and Chrome
```

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