Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

@alphatr/koa-wechat

1.0.0 • Public • Published

Wechat middleware for koa 2

install

npm install --save @alphatr/koa-wechat

how to use

app.use(wechat('token').middleware((ctx, next) => {
    const message = ctx.state.wechat;
    // do something
 
    ctx.body = 'response';
    return next();
});

Keywords

none

install

npm i @alphatr/koa-wechat

Downloadsweekly downloads

4

version

1.0.0

license

MIT

last publish

collaborators

  • avatar