Skip to content

webp兼容性检查,检查过程一次性,不依赖网络

License

Notifications You must be signed in to change notification settings

khronosleung/webpcheck

Repository files navigation

WebP Check

webp兼容性检查,检查过程一次性,不依赖网络

安装

npm install --save webpcheck

用例

import { check, result, clean } from 'webpcheck';

if (check()) {
    console.log('support');
} else {
    console.log('not support');
}

// 获取判断的缓存结果
result();

// 清除判断的缓存结果
clean();

About

webp兼容性检查,检查过程一次性,不依赖网络

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published