A Typescript Node.js package that create and generate responses into Lambda proxy.
You will need to import the node module into your file:
import ResponseBuilder from 'lambda-proxy-responses';
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);
- ok
- notFound
- badRequest
- forbidden
- serverError
- internalServerError
Not yet