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
- Host: GitHub
- URL: https://github.com/anzerr/form.pipe
- Owner: anzerr
- License: mit
- Created: 2019-08-20T13:16:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-21T16:58:13.000Z (over 3 years ago)
- Last Synced: 2025-02-09T20:45:59.312Z (3 months ago)
- Topics: form, fs, http, multipart-formdata, stream, util
- Language: JavaScript
- Homepage:
- Size: 3.18 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### `Intro`


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');
});
});
```