# formidable-upload-koa

> Koa middleware based on formidable uploader

Latest version **1.0.1** (published 2018-02-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install formidable-upload-koa
pnpm add formidable-upload-koa
yarn add formidable-upload-koa
bun add formidable-upload-koa
```

## 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.0.1 |
| Published | 2018-02-08 |
| First published | 2018-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 751 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Paul Rosset |
| Maintainers | prosset |
| Keywords | koa, upload, formidable, middleware |

## Links

- npm: https://www.npmjs.com/package/formidable-upload-koa
- Repository: https://github.com/PaulRosset/formidable-upload-koa
- Homepage: https://github.com/PaulRosset/formidable-upload-koa#readme
- Issues: https://github.com/PaulRosset/formidable-upload-koa/issues
- npm.io page: https://npm.io/package/formidable-upload-koa

## Dependencies (1)

- [formidable](https://npm.io/package/formidable.md) ^1.1.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-02-08
- 1.0.0 — 2018-02-08

## README

# formidable-upload-koa

[![Travis](https://img.shields.io/travis/PaulRosset/formidable-upload-koa.svg)]()
[![Codecov](https://img.shields.io/codecov/c/github/PaulRosset/formidable-upload-koa.svg)]()

Koa middleware based on formidable uploader.

[Formidable](https://github.com/felixge/node-formidable)

## Install

```
yarn add formidable-upload-koa
```

## Usage

```
const koa = require("koa");
const Router = require("koa-router");
const koaForm = require("formidable-upload-koa");

const app = new koa();
const router = new Router();

const options = {
  uploadDir: `${__dirname}/`,
  keepExtensions: true
};

router.post("/uploader", koaForm(options), ctx => {
  // Access to
  // ctx.req.files
  // ctx.req.fields
  // The file has been uploaded in the folder choosen above.
});

app.use(router.routes());
app.listen(8080);
```

## Test

```
yarn test
```

## License

MIT

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