https://github.com/khronosleung/webpcheck
webp兼容性检查,检查过程一次性,不依赖网络
https://github.com/khronosleung/webpcheck
tool webp webpcheck
Last synced: about 2 months ago
JSON representation
webp兼容性检查,检查过程一次性,不依赖网络
- Host: GitHub
- URL: https://github.com/khronosleung/webpcheck
- Owner: khronosleung
- License: mit
- Created: 2017-10-08T14:38:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T09:44:07.000Z (over 3 years ago)
- Last Synced: 2024-04-26T09:01:11.012Z (about 2 years ago)
- Topics: tool, webp, webpcheck
- Language: JavaScript
- Homepage:
- Size: 380 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebP Check
webp兼容性检查,检查过程一次性,不依赖网络
## 安装
```shell
npm install --save webpcheck
```
## 用例
```js
import { check, result, clean } from 'webpcheck';
if (check()) {
console.log('support');
} else {
console.log('not support');
}
// 获取判断的缓存结果
result();
// 清除判断的缓存结果
clean();
```