partial-stream

0.0.0 • Public • Published

partial-stream Build Status

Extract the first part of a stream based on a separator

Install

Installation of the npm package:

> npm install --save partial-stream

Usage

In 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)

Development

Installing dependencies

> npm install

Compilation

The sources files are watched and automatically recompiled on changes.

> npm run dev

Tests

> npm run test-dev

Contributions

Contributions are very welcomed, either on the documentation or on the code.

You may:

  • report any issue you've encountered;
  • fork and create a pull request.

License

${pkg.license} © Julien Fontanet

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.0
    608
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.0
    608

Package Sidebar

Install

npm i partial-stream

Weekly Downloads

608

Version

0.0.0

License

ISC

Last publish

Collaborators

  • julien-f
  • marsaud