Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 373 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 373 Bytes

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();