duing-sdk

npm install --save duing-sdk

Usage no npm install needed!

<script type="module">
  import duingSdk from 'https://cdn.skypack.dev/duing-sdk';
</script>

README

duing-sdk

install

npm install --save duing-sdk

usage

// demo for koa

const Koa = require('koa');

const duingSDK = require('duing-sdk');

const app = new Koa();

app.use(async ctx => {
  // 使用原生的 request 与 response
  duingSDK(ctx.req, ctx.res);
});

app.listen(3000);