npm install @ya-wxapp-org/pify 
``bash`
yarn add @ya-wxapp-org/pify
`js
const pify = require('@ya-wxapp-org/pify')
const info = await pify(wx.getUserInfo)({
withCredentials: true
})
//=> userinfo.
`
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
pify © fimars, Released under the MIT License.
Authored and maintained by fimars with help from contributors (list).
> github.com/fimars · GitHub @fimars · Twitter @fimars