0.2.1 • Published 9 years ago

koa-snake-res v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

koa-snake-res

NPM version Build Status Test coverage

Snake case json response transform middleware for koa

Install

$ npm install koa-snake-res

Usage

var koa = require('koa')
var app = koa()
var snakeRes = require('koa-snake-res')

app.use(snakeRes())

app.use(function *() {
  this.body = {
    camelCase: 'this is a camelCase'
  }
})

app.listen()

// GET /
//
// {
//    camel_case: 'this is a camelCase'
// }

License

MIT © C. T. Lin

0.2.1

9 years ago

0.2.0

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago