1.1.3 • Published 2 years ago

supports-webp-sync v1.1.3

Weekly downloads
371
License
MIT
Repository
github
Last release
2 years ago

supports-webp-sync

npm npm

Checks if the browser supports WebP without any costly requests.

May give false negatives for some obscure non-WebKit browsers.

Live check: https://ihordiachenko.github.io/supports-webp-sync/

Install

npm i -S supports-webp-sync

Usage

import { checkWebPSupport } from 'supports-webp-sync'

if (checkWebPSupport()) {
  // Get some WebP images
}
1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

4 years ago

1.0.0

5 years ago