https://github.com/zoubin/wx-caniuse
check if api and component are available in given version of mp
https://github.com/zoubin/wx-caniuse
Last synced: about 1 month ago
JSON representation
check if api and component are available in given version of mp
- Host: GitHub
- URL: https://github.com/zoubin/wx-caniuse
- Owner: zoubin
- Created: 2020-12-25T08:43:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-08T07:00:36.000Z (over 5 years ago)
- Last Synced: 2025-04-19T18:13:58.411Z (about 1 year ago)
- Language: JavaScript
- Size: 949 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# wx-caniuse
兼容低版本基础库的小工具。
## Install
```js
npm i -g wx-caniuse
wx-caniuse -h
```
## Usage
```bash
wx-caniuse view console.log # 查看指定API的详细信息
wx-caniuse view -C scroll-view # 查看指定组件的详细信息
wx-caniuse open console.log # 使用默认浏览器打开文档
wx-caniuse list -v '2.0.0' # 列出 2.0.0 可用的所有 wx.XXX API
wx-caniuse list -e 'Sync$' -v '2.0.0' # 列出 2.0.0 可用的所有以 Sync 结尾的 wx.XXX API
wx-caniuse tsc src/pages/home/index # 使用TS进行静态检查
```