0.0.1 • Published 7 years ago

wxapp-r2 v0.0.1

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

wxapp-r2

Greenkeeper badge Build Status Dependency License Prettier Node npm version

微信小程序的r2实现

Installation

npm install wxapp-r2 --save

example

Usage

// es6
import r2 from 'wxapp-r2';

// commonJS
const r2 = require('wxapp-r2');

async function main(){
    const res = await r2('https://api.github.com').json;
    console.log(res);
}

Related

wxapp-fetch fetch API implement for WeCHat App

wxapp-http 微信小程序的http模块,Tiny but Powerful

wxapp-XMLHttpRequest Web XMLHttpRequest implement for WeChat APP

Contributing

git clone https://github.com/axetroy/wxapp-r2.git
cd ./wxapp-r2
yarn
yarn run start
  1. 打开微信web开发者工具, 加载wxapp-r2/example目录
  2. 修改index.ts

欢迎PR.

You can flow Contribute Guide

Contributors

Axetroy💻 🔌 ⚠️ 🐛 🎨

License

The MIT License