0.3.1 • Published 7 years ago

zuper-json-bodyparser v0.3.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

json-bodyparser

JSON body parser for zuper

##Usage

import { Server } from 'http'
import { Application } from 'zuper'
import json from 'zuper-json-bodyparser'

const server = new Server()
const app = new Application()

const getBody = req => req.body

app.use(json)
app.use(getBody)

server.on('request', app.handleRequest)
server.listen(80, '127.0.0.1', () => {
  console.log('Server running at http://localhost/')
})
0.3.1

7 years ago

0.3.0

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago