0.1.1 • Published 7 years ago
caniuse-webp v0.1.1
install
npm i caniuse-webp
usage
import caniuseWebp from 'caniuse-webp'
const isSupported = caniuseWebp()
// return {
// lossy: true,
// lossless: true,
// alpha: true,
// animation: true,
// }
const isSupportedWebpLossy = caniuseWebp('lossy')
// return trueApi
caniuseWebp
can check lossy、lossless、alpha、animation