This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

lambda-proxy-responses
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

lambda-proxy-response

A Typescript Node.js package that create and generate responses into Lambda proxy.

Installation

Getting Started

You will need to import the node module into your file:

  import ResponseBuilder from 'lambda-proxy-responses';

Usage

  ResponseBuilder.ok('this is a new response', cb);
  ResponseBuilder.ok({message: 'this is a new response'}, cb);
  ResponseBuilder.notFound('object notFound', cb);
  ResponseBuilder.serverError(500, new Error('this is a new response'), cb);

Response Type support

  • ok
  • notFound
  • badRequest
  • forbidden
  • serverError
  • internalServerError

License

Not yet

forthebadge forthebadge forthebadge

Package Sidebar

Install

npm i lambda-proxy-responses

Weekly Downloads

59

Version

0.1.7

License

ISC

Unpacked Size

55.2 kB

Total Files

14

Last publish

Collaborators

  • gibrancordoba