webp-avif-support
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

webp-avif-support

Exports a function to check if browser support AVIF and WebP.

Classes avif, webp, notavif and notwebp will be added to the html root element.

Usage

import checkImageSupport from './imgsupport.js'

checkImageSupport()

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i webp-avif-support

      Weekly Downloads

      3

      Version

      1.1.0

      License

      MIT

      Unpacked Size

      3.64 kB

      Total Files

      7

      Last publish

      Collaborators

      • kevinfrom