# async-busboy-plus

> Promise based multipart form parser

Latest version **0.7.1** (published 2019-06-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install async-busboy-plus
pnpm add async-busboy-plus
yarn add async-busboy-plus
bun add async-busboy-plus
```

## 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.7.1 |
| Published | 2019-06-19 |
| First published | 2019-05-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 19.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | xiaoliang2233 |
| Maintainers | xiaoliang2233 |
| Keywords | koa, multipart, form, file-upload |

## Links

- npm: https://www.npmjs.com/package/async-busboy-plus
- Repository: https://github.com/xiaoliang2233/async-busboy
- Homepage: https://github.com/xiaoliang2233/async-busboy#readme
- Issues: https://github.com/xiaoliang2233/async-busboy/issues
- npm.io page: https://npm.io/package/async-busboy-plus

## Dependencies (2)

- [busboy](https://npm.io/package/busboy.md) ^0.2.12
- [fs-extra](https://npm.io/package/fs-extra.md) ^8.0.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

- 0.7.1 (latest) — 2019-06-19
- 0.7.0 — 2019-05-31

## README

# Promise Based Multipart Form Parser

forked from 'async-busboy'
 
add complete method to delete tmpfile

add tmpdir option to select where to cache

## Examples

### Async/Await (using temp files)
```js
import asyncBusboy from 'async-busboy-plus';

// Koa 2 middleware
async function(ctx, next) {
  const {files, fields, complete} = await asyncBusboy(ctx.req, {
    // default to os.tmpdir
    tmpdir: '/tmp'
  });

  // Make some validation on the fields before upload to S3
  if ( checkFiles(fields) ) {
    files.map(uploadFilesToS3)
  } else {
    return 'error';
  }
  complete()
}
```

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