# sls-wrapper

> Wrapper for Serverless Projects"

Latest version **1.0.39** (published 2022-09-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install sls-wrapper
pnpm add sls-wrapper
yarn add sls-wrapper
bun add sls-wrapper
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.39 |
| Published | 2022-09-26 |
| First published | 2019-11-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 12 |
| Unpacked size | 60.5 KB |
| Known vulnerabilities | 0 (+5 in 5 direct dependencies) |
| Install scripts | no |
| Author | Sidney Barrah |
| Maintainers | s-barrah |

## Links

- npm: https://www.npmjs.com/package/sls-wrapper
- Repository: https://github.com/s-barrah/sls-wrapper
- Homepage: https://github.com/s-barrah/sls-wrapper#readme
- Issues: https://github.com/s-barrah/sls-wrapper/issues
- npm.io page: https://npm.io/package/sls-wrapper

## Dependencies (12)

- [alai](https://npm.io/package/alai.md) ^1.0.3
- [snyk](https://npm.io/package/snyk.md) ^1.437.4
- [uuid](https://npm.io/package/uuid.md) ^8.3.2
- [async](https://npm.io/package/async.md) ^3.1.1
- [xml2js](https://npm.io/package/xml2js.md) ^0.4.23
- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.839.0
- [winston](https://npm.io/package/winston.md) ^3.3.3
- [useragent](https://npm.io/package/useragent.md) ^2.3.0
- [aws-lambda](https://npm.io/package/aws-lambda.md) ^1.0.7
- [validate.js](https://npm.io/package/validate.js.md) ^0.13.1
- [yargs-parser](https://npm.io/package/yargs-parser.md) ^20.2.4
- [semantic-release-cli](https://npm.io/package/semantic-release-cli.md) ^5.4.3

## Recent versions

- 1.0.39 (latest) — 2022-09-26
- 1.0.38 — 2021-02-22
- 1.0.37 — 2020-08-31
- 1.0.36 — 2020-08-31
- 1.0.35 — 2020-08-31
- 1.0.34 — 2020-08-31
- 1.0.33 — 2020-08-31
- 1.0.32 — 2020-08-31
- 1.0.31 — 2020-08-31
- 1.0.30 — 2020-08-31
- 1.0.29 — 2020-08-31
- 1.0.28 — 2020-08-31
- 1.0.27 — 2020-08-31
- 1.0.26 — 2020-08-31
- 1.0.25 — 2020-08-31
- … 2 more at https://npm.io/package/sls-wrapper/versions

## README

[![CircleCI](https://circleci.com/gh/s-barrah/sls-wrapper.svg?style=svg&circle-token=e3bbc5099f001fb40341210210481f45b727e69d)](https://app.circleci.com/pipelines/github/s-barrah/sls-wrapper)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![semantic-release](https://badge.fury.io/js/sls-wrapper.svg)](https://www.npmjs.com/package/sls-wrapper)

Serverless Wrapper
--------------

# Installation & usage

Install via npm:

```bash
npm install --save sls-wrapper
```

Or via yarn:

```bash
yarn add sls-wrapper
```

You can then wrap your lambdas as follows.

```yaml
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](https://www.npmjs.com/package/semantic-release).

---
_Source: https://npm.io/package/sls-wrapper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
