# partial-stream

> Extract the first part of a stream based on a separator

Latest version **0.0.0** (published 2015-07-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install partial-stream
pnpm add partial-stream
yarn add partial-stream
bun add partial-stream
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2015-07-23 |
| First published | 2015-07-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Julien Fontanet |
| Maintainers | julien-f |

## Links

- npm: https://www.npmjs.com/package/partial-stream
- Repository: https://github.com/julien-f/js-partial-stream
- Issues: https://github.com/julien-f/js-partial-stream/issues
- npm.io page: https://npm.io/package/partial-stream

## Dependencies (2)

- [through2](https://npm.io/package/through2.md) ^2.0.0
- [babel-runtime](https://npm.io/package/babel-runtime.md) ^5.8.3

## Recent versions

- 0.0.0 (latest) — 2015-07-23

## README

# partial-stream [![Build Status](https://travis-ci.org/julien-f/js-partial-stream.png?branch=master)](https://travis-ci.org/julien-f/js-partial-stream)

> Extract the first part of a stream based on a separator

## Install

Installation of the [npm package](https://npmjs.org/package/partial-stream):

```
> npm install --save partial-stream
```

## Usage

In this example, the header section of an HTTP response is extracted from the raw response.

```javascript
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](https://github.com/julien-f/js-partial-stream/issues)
  you've encountered;
- fork and create a pull request.

## License

${pkg.license} © [Julien Fontanet](https://github.com/julien-f)

---
_Source: https://npm.io/package/partial-stream · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
