# micro-to-lambda

> Convert a [micro](https://github.com/zeit/micro) function to a lambda handler.

Latest version **0.2.2** (published 2017-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install micro-to-lambda
pnpm add micro-to-lambda
yarn add micro-to-lambda
bun add micro-to-lambda
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2017-07-13 |
| First published | 2017-07-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mark Marijnissen |
| Maintainers | markmarijnissen |

## Links

- npm: https://www.npmjs.com/package/micro-to-lambda
- npm.io page: https://npm.io/package/micro-to-lambda

## Dependencies (2)

- [micro](https://npm.io/package/micro.md) ^7.3.3
- [query-string](https://npm.io/package/query-string.md) ^4.3.4

## Recent versions

- 0.2.2 (latest) — 2017-07-13
- 0.2.1 — 2017-07-13
- 0.2.0 — 2017-07-13
- 0.1.0 — 2017-07-12

## README

# micro-to-lambda

Convert a [micro](https://github.com/zeit/micro) function to a lambda handler.

## Installation

```bash
npm install --save micro-to-lambda
```

## Usage

Given a micro function in `index.js`
```
module.exports = (req,res) => ({ time: new Date() })
```

Convert it to a lambda function in `handler.js`:
```
var microToLambda = require('micro-to-lambda');
var index = require('./index');
module.exports.time = microToLambda(index);
```
## changelog

* 0.2.0 - remove async-to-gen
* 0.1.0 - initial release

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