This package has been deprecated

Author message:

this package has been deprecated

node-serverless-response

1.1.1 • Public • Published

JavaScript Style Guide Build Status

node-serverless-response

If you are using the serverless framework to develop your micro service, this package can help you to generate the HTTP response payload.

Installing

NPM

npm install node-serverless-response

Yarn

yarn add node-serverless-response

Example

General

const Response = require('node-serverless-response')
const _Response = new Response()

export.handler = async (event, context, callback) => {
  return _Response.success('Hello World!')
}

Support CORS

const Response = require('node-serverless-response')
const _Response = new Response()

export.handler = async (event, context, callback) => {
  return _Response.success('Hello World!', true)
}

Package Sidebar

Install

npm i node-serverless-response

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

18.6 kB

Total Files

14

Last publish

Collaborators

  • 0x427567