{"_id":"@axetroy/wxapp-promisify","_rev":"2-a61485f92ce24cb69bfdfada2ebd36be","name":"@axetroy/wxapp-promisify","description":"promisify the wx API","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@axetroy/wxapp-promisify","version":"0.1.0","description":"promisify the wx API","main":"./dist/index.js","scripts":{"test":"ava","build":"webpack --display-error-details --progress --colors","watch":"webpack --display-error-details --progress --colors --watch","generate":"all-contributors generate","deploy":"gh-pages -d ./dist"},"repository":{"type":"git","url":"git+https://github.com/axetroy/wxapp-promisify.git"},"author":{"name":"Axetroy"},"license":"ISC","bugs":{"url":"https://github.com/axetroy/wxapp-promisify/issues"},"homepage":"https://github.com/axetroy/wxapp-promisify#readme","devDependencies":{"all-contributors-cli":"^4.0.1","ava":"^0.18.2","babel-core":"^6.24.0","babel-loader":"^6.4.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-preset-es2015":"^6.24.0","gh-pages":"^0.12.0","webpack":"^2.3.3"},"gitHead":"e25ae9330baf992ff5b9572ce3dc61f5ec7018b4","_id":"@axetroy/wxapp-promisify@0.1.0","_shasum":"91499b3ac1fc81f553892e90463eed52b4aef910","_from":".","_npmVersion":"4.4.1","_nodeVersion":"6.10.0","_npmUser":{"name":"axetroy","email":"troy450409405@gmail.com"},"dist":{"shasum":"91499b3ac1fc81f553892e90463eed52b4aef910","tarball":"https://registry.npmjs.org/@axetroy/wxapp-promisify/-/wxapp-promisify-0.1.0.tgz","integrity":"sha512-V7IS7t7QqYNmJPbXyqm2xqt5dr1pxiCw+HBWjULMaGckbW1uTSz/B6J2u5gm+/op1xr6hU0s/RRu/3doarUDxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDec8EZeJv0qDrenKDFl6MHM27/xEzgdKZYjNBqWj23QIgRThJTvdAZMIU5JKqf3vBLzET1s2fWjplUP0qSymanLo="}]},"maintainers":[{"name":"axetroy","email":"troy450409405@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wxapp-promisify-0.1.0.tgz_1498118354095_0.20882936846464872"}}},"readme":"# wxapp-promisify\n[![Build Status](https://travis-ci.org/axetroy/wxapp-promisify.svg?branch=master)](https://travis-ci.org/axetroy/wxapp-promisify)\n[![Dependency](https://david-dm.org/axetroy/wxapp-promisify.svg)](https://david-dm.org/axetroy/wxapp-promisify)\n![License](https://img.shields.io/badge/license-MIT-green.svg)\n[![Prettier](https://img.shields.io/badge/Code%20Style-Prettier-green.svg)](https://github.com/prettier/prettier)\n![Node](https://img.shields.io/badge/node-%3E=6.0-blue.svg?style=flat-square)\n[![npm version](https://badge.fury.io/js/@axetroy/wxapp-promisify.svg)](https://badge.fury.io/js/wxapp-promisify)\n\n让微信小城的对全局对``wx``的api返回promise.\n\n对所有api增加Async后缀，则调用异步api，并且返回promise.\n\n## Installation\n```bash\nnpm install wxapp-promisify\n```\n\n## Features\n\n- [x] 存储绝大多数的数据类型(微信原生对象只支持object/string)\n- [x] 设置有存储时限\n- [x] 优雅的API\n\n## Usage\n\n```javascript\n// es6\nimport wx from '@axetroy/wxapp-promisify';\n\n// commandJS\nvar wx = require('@axetroy/wxapp-promisify');\n\nwx\n  .getUserInfoAsync()\n  .then(function(userInfo) {\n    console.log(userInfo);\n  })\n  .catch(function(err) {\n    console.error(err);\n  });\n\nwx\n  .showToastAsync({ title: 'This is title' })\n  .then(function(res) {})\n  .catch(function(err) {});\n\n```\n\n```bash\ngit clone https://github.com/axetroy/wxapp-promisify.git\ncd ./wxapp-promisify\nyarn\n```\n\nYou can flow [Contribute Guide](https://github.com/axetroy/wxapp-promisify/blob/master/contributing.md)\n\n## Contributors\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n| [<img src=\"https://avatars1.githubusercontent.com/u/9758711?v=3\" width=\"100px;\"/><br /><sub>Axetroy</sub>](http://axetroy.github.io)<br />[💻](https://github.com/gpmer/gpm.js/commits?author=axetroy) 🔌 [⚠️](https://github.com/gpmer/gpm.js/commits?author=axetroy) [🐛](https://github.com/gpmer/gpm.js/issues?q=author%3Aaxetroy) 🎨 |\n| :---: |\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n## License\n\nThe [MIT License](https://github.com/axetroy/wxapp-promisify/blob/master/LICENSE)","maintainers":[{"name":"axetroy","email":"troy450409405@gmail.com"}],"time":{"modified":"2022-06-12T14:55:12.877Z","created":"2017-06-22T07:59:14.288Z","0.1.0":"2017-06-22T07:59:14.288Z"},"homepage":"https://github.com/axetroy/wxapp-promisify#readme","repository":{"type":"git","url":"git+https://github.com/axetroy/wxapp-promisify.git"},"author":{"name":"Axetroy"},"bugs":{"url":"https://github.com/axetroy/wxapp-promisify/issues"},"license":"ISC","readmeFilename":"README.md"}