1.0.1 • Published 5 years ago
@twilson63/body-json v1.0.1
@twilson63/body
composable body parser function, this function returns a promise that can be invoked to perform the actual parsing of the body in to a js object.
Usage
module.exports = httpCompose(
async ({body, send}) => {
const doc = await body()
send({ok: true})
},
sendJSON,
bodyParser
)