koa-mongo MongoDB middleware for koa, support connection pool. koa-mongo koa-mongo is a mongodb middleware for koa, support connection pool. Install npm i koa-mongo --save Usage app.use(mongo({ host: 'localhost', port: 27017, user: 'admin', pass: '12…
KoaHub平台基于Node.js开发的Koa 链接支付宝插件代码信息详情 easy-alipay alipay payment & notification APIs easy-alipay Nodejs based Alipay payment & notification APIs API Payment.createDirectPay() Create an Ali direct payment, return an Ali url so client can go to Ali…
co-request co-request promisify wrapper for request co-request Simple wrapper to the request library for co-like interface (node.js generator based code). You can use it with koa or co To install simply run: npm install co-request Require co first, a…
koa-jwt Koa JWT authentication middleware. koa-jwt Koa middleware that validates JSON Web Tokens and sets ctx.state.user (by default) if a valid token is provided. This module lets you authenticate HTTP requests using JSON Web Tokens in your Koa (nod…
debug small debugging utility debug tiny node.js debugging utility modelled after node core's debugging technique. Installation $ npm install debug Usage With debug you simply invoke the exported function to generate your debug function, passing it a…
koa-static-server Static file serving middleware for koa with directory, rewrite and index support koa-static-server static file serving middleware for koa with directory, rewrite and index support Installation $ npm install koa-static-server API var…
koa-session2 Middleware for Koa2 to get/set session use with custom stores such as Redis or mongodb with Babel koa-session2     Middleware for Koa2 to get/set session use with custom stores such as Redis or mongodb with Babel If you are not using bab…
koahub-handlebars koahub-handlebars koahub handlebars templates Installation $ npm install koahub-handlebars Use with koa var koa = require('koa'); var hbs = require('koahub-handlebars'); var app = koa(); // koahub-handlebars is middleware. `use` it…
koahub-skip koahub skip middleware koahub skip Conditionally skip a middleware when a condition is met. Install npm i koahub-skip --save Usage With existing middlewares: var skip = require('koahub-skip'); var serve = require('koa-static'); var static…
koa-router Router middleware for koa. Provides RESTful resource routing. koa-router       Router middleware for koa Express-style routing using app.get, app.put, app.post, etc. Named URL parameters. Named routes with URL generation. Responds to OPTIO…