# connect-busbuddy

> Connect middleware for busboy that abstracts you from all that boilerplate code

Latest version **0.0.3** (published 2014-09-24) · 0 weekly downloads

## Install

```sh
npm install connect-busbuddy
pnpm add connect-busbuddy
yarn add connect-busbuddy
bun add connect-busbuddy
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2014-09-24 |
| First published | 2014-09-24 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | andrezzoid |
| Maintainers | andrezzoid |
| Keywords | connect, middleware, uploads, forms, multipart, form-data, express |

## Links

- npm: https://www.npmjs.com/package/connect-busbuddy
- Repository: https://github.com/andrezzoid/connect-busbuddy
- Issues: https://github.com/andrezzoid/connect-busbuddy/issues
- npm.io page: https://npm.io/package/connect-busbuddy

## Dependencies (1)

- [busboy](https://npm.io/package/busboy.md) *

## 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.0.3 (latest) — 2014-09-24

## README

Description
===========

Connect middleware for [busboy](https://github.com/mscdex/busboy).


Requirements
============

* [node.js](http://nodejs.org/) -- v0.8.0 or newer


Install
============
```
npm install connect-busbuddy
```


Example
=======

```javascript
var busbuddy = require('connect-busbuddy');

// default options, no immediate parsing
app.use(busbuddy());
// ...
app.use(function(req, res) {
    var prop = req.body['my-input'];
    
    var file = req.files['my-file'].file;
    var filename = req.files['my-file'].filename;
	var dst = fs.createWriteStream('./uploads/' + filename);
	file.pipe(dst);
});
```

```javascript
// any valid Busboy options can be passed in also
app.use(busboy({
  highWaterMark: 2 * 1024 * 1024,
  limits: {
    fileSize: 10 * 1024 * 1024
  }
}));

```

Licence
=======

MIT - https://github.com/andrezzoid/connect-busbuddy/blob/master/LICENSE

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