sls-wrapper
v1.0.39
Published
Wrapper for Serverless Projects"
Downloads
5
Readme
Serverless Wrapper
Installation & usage
Install via npm:
npm install --save sls-wrapper
Or via yarn:
yarn add sls-wrapper
You can then wrap your lambdas as follows.
import {
LambdaWrapper,
ResponseModel,
RequestService,
} from 'aws-wrapper';
export default LambdaWrapper({}, (di, request, done) => {
const response = new ResponseModel({}, 200, `hello ${request.get('name', 'nobody')}`);
done(null, response.generate());
});
Semantic release
Release management is automated using semantic-release.