@twilson63/body-json
v1.0.1
Published
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.
Downloads
4
Readme
@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
)