# aws-serverless-lite

> Run serverless applications and REST APIs using Node.js application framework on top of AWS Lambda and AWS API Gateway. This library is intended for use with Proxy method configurations.

Latest version **2.0.6** (published 2020-05-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install aws-serverless-lite
pnpm add aws-serverless-lite
yarn add aws-serverless-lite
bun add aws-serverless-lite
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.6 |
| Published | 2020-05-20 |
| First published | 2019-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 37.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | jhiester |
| Keywords | AWS, Lambda, Api, Gateway |

## Links

- npm: https://www.npmjs.com/package/aws-serverless-lite
- Repository: https://github.com/jameshiester/aws-serverless-lite
- Homepage: https://github.com/jameshiester/aws-serverless-lite#readme
- Issues: https://github.com/jameshiester/aws-serverless-lite/issues
- npm.io page: https://npm.io/package/aws-serverless-lite

## Dependencies (3)

- [yup](https://npm.io/package/yup.md) ^0.28.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [@types/lodash](https://npm.io/package/@types/lodash.md) ^4.14.146

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 2.0.6 (latest) — 2020-05-20
- 2.0.4 — 2020-04-06
- 2.0.3 — 2020-04-06
- 2.0.2 — 2020-03-03
- 2.0.1 — 2020-03-03
- 2.0.0 — 2020-03-02
- 1.0.13 — 2020-01-29
- 1.0.12 — 2020-01-22
- 1.0.11 — 2019-12-21
- 1.0.10 — 2019-12-04
- 1.0.9 — 2019-11-22
- 1.0.8 — 2019-11-10
- 1.0.7 — 2019-11-10
- 1.0.6 — 2019-11-10
- 1.0.5 — 2019-11-10
- … 4 more at https://npm.io/package/aws-serverless-lite/versions

## README

# AWS SERVERLESS LITE

A simple library to manage routing in AWS lambda functions

## Example Usage

---

index.js

```javascript
import {
  handler as APIHandler,
  IAPIRoute,
  httpMethod,
} from 'aws-serverless-lite';

const routes: IAPIRoute[] = [
  {
    httpMethod: httpMethod.GET,
    path: 'projects',
    handlerFunction: getAll,
  },
  {
    httpMethod: httpMethod.GET,
    path: 'projects/:projectId',
    handlerFunction: ProjectService.update,
  },
];

exports.handler = async (event: any, _: any, callback: any) =>
  APIHandler(routes)(event, _, callback);
```

## License

---

This project is licensed under the MIT license.

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