# parse-input-stream

> [![NPM](https://nodei.co/npm/parse-input-stream.png)](https://nodei.co/npm/parse-input-stream/)

Latest version **1.0.1** (published 2015-08-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install parse-input-stream
pnpm add parse-input-stream
yarn add parse-input-stream
bun add parse-input-stream
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-08-07 |
| First published | 2015-08-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 19 |
| Author | Karissa McKelvey |
| Maintainers | karissa |

## Links

- npm: https://www.npmjs.com/package/parse-input-stream
- Repository: https://github.com/karissa/parse-input-stream
- Issues: https://github.com/karissa/parse-input-stream/issues
- npm.io page: https://npm.io/package/parse-input-stream

## Dependencies (8)

- [debug](https://npm.io/package/debug.md) ^2.2.0
- [pumpify](https://npm.io/package/pumpify.md) ^1.3.3
- [through2](https://npm.io/package/through2.md) ^2.0.0
- [JSONStream](https://npm.io/package/JSONStream.md) ^1.0.4
- [csv-parser](https://npm.io/package/csv-parser.md) ^1.7.0
- [detect-csv](https://npm.io/package/detect-csv.md) ^1.1.0
- [peek-stream](https://npm.io/package/peek-stream.md) ^1.1.1
- [detect-json-style](https://npm.io/package/detect-json-style.md) ^1.0.2

## Recent versions

- 1.0.1 (latest) — 2015-08-07
- 1.0.0 — 2015-08-06

## README

# parse-input-stream

![dat](http://img.shields.io/badge/Development%20sponsored%20by-dat-green.svg?style=flat)

Parse a tabular input stream. Can be used to pipe a buffered stream and attempts to parse it as a table -- csv, json, objects, or ndjson are supported.

```
npm install -g parse-input-stream
```

For CSV files, it will attempt to guess the delimiter. Quoted csvs work!

For JSON files, the selector will be auto-detected. Experimental.

## Example

```js
var parseInputStream = require('parse-input-stream')

var inputStream = fs.createReadStream('/path/to/file.csv')

var args = {
  "format": "csv"
}

inputStream.pipe(parseInputStream(args)).pipe(process.stdout)
```

## Options

`format`: string. attempt to parse the stream into the given format. support 'json', 'objects', 'csv', or 'tsv'

`detectMax`: number. the maximum buffer amount to pre-read in order to detect the file type, delimiter, etc. Default 8000

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