New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

partial-stream

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

partial-stream

Extract the first part of a stream based on a separator

latest
Source
npmnpm
Version
0.0.0
Version published
Weekly downloads
1.4K
-14.3%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 23 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts