sls-wrapper

Wrapper for Serverless Projects"

Usage no npm install needed!

<script type="module">
  import slsWrapper from 'https://cdn.skypack.dev/sls-wrapper';
</script>

README

CircleCI semantic-release semantic-release

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.