An open API service indexing awesome lists of open source software.

https://github.com/anzerr/form.pipe

Parse stream of multipart into sub streams per part
https://github.com/anzerr/form.pipe

form fs http multipart-formdata stream util

Last synced: 3 months ago
JSON representation

Parse stream of multipart into sub streams per part

Awesome Lists containing this project

README

        

### `Intro`
![GitHub Actions status | linter](https://github.com/anzerr/form.pipe/workflows/linter/badge.svg)
![GitHub Actions status | publish](https://github.com/anzerr/form.pipe/workflows/publish/badge.svg)
![GitHub Actions status | test](https://github.com/anzerr/form.pipe/workflows/test/badge.svg)

Parse stream of multipart into sub streams per part

#### `Install`
``` bash
npm install --save git+https://[email protected]/anzerr/form.pipe.git
```

### `Example`
``` javascript
const fs = require('fs'),
path = require('path'),
FormPipe = require('form.pipe');

fs.createReadStream('./test/out.dump').pipe(new FormPipe()).on('data', (file) => {
file.stream.pipe(fs.createWriteStream(path.join(__dirname, file.filename))).on('close', () => {
console.log(file.name, 'done');
});
});
```