npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

@mpxjs/promisify

1.1.7 • Public • Published

mpx-promisify

make miniprogram api promisify

Usage

import mpx from '@mpxjs/core'
import promisify from '@mpxjs/promisify'
 
mpx.use(promisify)
 
// use以后通过mpx调用小程序的API就可以用promise的形式来写了。
// 注意,没有回调的方法以及on方法等无法使用
mpx.request({url}).then(res => {console.log(res)})
 
mpx.uploadFile(uploadObj).then(res => {})

Keywords

none

install

npm i @mpxjs/promisify

Downloadsweekly downloads

7

version

1.1.7

license

ISC

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
Report a vulnerability