# @theide/api-gateway

> Just a simple package that will normalize the Api Gateway structures

Latest version **1.8.2** (published 2021-06-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @theide/api-gateway
pnpm add @theide/api-gateway
yarn add @theide/api-gateway
bun add @theide/api-gateway
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.8.2 |
| Published | 2021-06-02 |
| First published | 2021-02-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 13.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | wdalmut |

## Links

- npm: https://www.npmjs.com/package/@theide/api-gateway
- npm.io page: https://npm.io/package/@theide/api-gateway

## Dependencies (2)

- [ramda](https://npm.io/package/ramda.md) ^0.27.1
- [http-errors](https://npm.io/package/http-errors.md) ^1.8.0

## Recent versions

- 1.8.2 (latest) — 2021-06-02
- 1.8.0 — 2021-02-07

## README

# Api Gateway normalizations

Just a simple package that will normalize the Api Gateway structures

```js
const { app, json, error } = require('@theide/api-gateway')

module.exports = async event => app(event)
  .then(json_body)
  .then(async ({req, res}) => {
    res.body = {test: true}

    return {req, res} // next middleware
  })
  .then(json) // send json response
  .catch(error)
```

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