1.0.0 • Published 5 years ago
lambda-nodejs-response-helper v1.0.0
Response helpers for AWS Lambda (nodejs)
Helper functions to create response objects for AWS Lambda
Installation
npm install --save github:egeniq/lambda-nodejs-response-helper
Usage
'use strict';
const {createJsonResponse} = require('lambda-nodejs-response-helper');
module.exports.hello = async (event) => {
return createJsonResponse(
200,
{
message: 'Go Serverless v1.0! Your function executed successfully!',
input: event,
},
{
'X-Custom-Header': 'Foobar'
}
);
};
1.0.0
5 years ago