package
Extract the first part of a stream based on a separator
npm install partial-streamGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 11 packages.
1.9 MB
Includes dependencies.

Extract the first part of a stream based on a separator
Installation of the npm package:
> npm install --save partial-streamIn this example, the header section of an HTTP response is extracted from the raw response.
import partialStream from 'partial-stream'
const contentStream = rawHttpResponse
.pipe(partialStream('\r\n\r\n', headers => {
console.log(headers)
})
contentStream.pipe(writeStream)> npm installThe sources files are watched and automatically recompiled on changes.
> npm run dev> npm run test-devContributions are very welcomed, either on the documentation or on the code.
You may:
${pkg.license} © Julien Fontanet