Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/greedbell/weapp-promise
turn api of weapp to promise 把微信小程序 api 转成 promise
https://github.com/greedbell/weapp-promise
Last synced: 3 months ago
JSON representation
turn api of weapp to promise 把微信小程序 api 转成 promise
- Host: GitHub
- URL: https://github.com/greedbell/weapp-promise
- Owner: greedbell
- License: mit
- Created: 2016-10-19T10:02:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-09T08:05:46.000Z (about 8 years ago)
- Last Synced: 2024-10-01T16:21:50.663Z (3 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# weapp-promise
turn api of weapp to promise 把微信小程序 api 转成 promise. 功能是从 [labrador](https://github.com/maichong/labrador) 提取得到。
## getApp()
```
import * as wx from 'weapp-promise';
const app = wx.app;
```## promise
```
import * as wx from 'weapp-promise';
async login() {
await wx.login();
}
```## Thanks
[labrador](https://github.com/maichong/labrador)