@sharecover-co/middy-http-response-serializer

0.1.0 • Public • Published

HTTP Response Serializer Middleware

This middleware serializes the response to JSON and wraps it in a 200 HTTP response.

Install

To install this middleware you can use NPM:

npm install --save @sharecover-co/middy-http-response-serializer

Sample usage

const middy = require('@middy/core')
const httpResponseSerializer = require('@sharecover-co/middy-http-response-serializer')

const handler = middy((event, context, cb) => {
  cb(null, {})
})

handler.use(httpResponseSerializer())

Readme

Keywords

none

Package Sidebar

Install

npm i @sharecover-co/middy-http-response-serializer

Weekly Downloads

103

Version

0.1.0

License

ISC

Unpacked Size

20.5 kB

Total Files

12

Last publish

Collaborators

  • salmanz
  • mschregardus
  • sharecover
  • luke.andersen.iag