0.6.0 • Published 6 years ago

webp-image-support v0.6.0

Weekly downloads
1
License
BSD-3-Clause
Repository
-
Last release
6 years ago

WebP Test

build

This plugin will detect if the browser supports the WebP format, resolving a Promise with true if WebP support is present, and false otherwise.

Example

index.js

import { supportsWebp } from './webp-image-support';

(async () => {

	const supported = await supportsWebp();
	if(supported) {
		console.log(`This browser supports WebP images`);
	} else {
		console.log(`This browser does not support WebP images.`);
	}
})();

GitLab

Submit issues, request features, check out the repo here: https://git.xvrqt.com/amy/webp-support

0.6.0

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago