<commit_before># csv-parser

Streaming csv parser inspired by binary-csv that aims to be faster than everyone else

	npm install csv-parser

[![build status](http://img.shields.io/travis/mafintosh/csv-parser.svg?style=flat)](http://travis-ci.org/mafintosh/csv-parser)
![dat](http://img.shields.io/badge/Development%20sponsored%20by-dat-green.svg?style=flat)

## Usage

``` js
fs.createReadStream('some-csv-file.csv')
	.pipe(csv())
	.on('data', function(data) {
		console.log('row', data)
	})
```

The data emitted is a normalized JSON object

## License

MIT<commit_msg>updated docs<commit_after># csv-parser

Streaming csv parser inspired by binary-csv that aims to be faster than everyone else

```
npm install csv-parser
```

[![build status](http://img.shields.io/travis/mafintosh/csv-parser.svg?style=flat)](http://travis-ci.org/mafintosh/csv-parser)
![dat](http://img.shields.io/badge/Development%20sponsored%20by-dat-green.svg?style=flat)

## Usage

Simply instantiate `csv` and pump a csv file to it and get the rows out as objects

``` js
var csv = require('csv-parser')

fs.createReadStream('some-csv-file.csv')
  .pipe(csv())
  .on('data', function(data) {
    console.log('row', data)
  })
```

The data emitted is a normalized JSON object

The csv constructor accepts the following options as well

``` js
var stream = csv({
  raw: false,    // do not decode to utf-8 strings
  seperator: ',' // specify optional cell seperator
})
```

## License

MIT
{'fraction_non_alphanumeric': 0.15300546448087432, 'fraction_numerical': 0.006147540983606557, 'mean_word_length': 4.48689138576779, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '273100', 'n_tokens_mistral': 540, 'n_tokens_neox': 495, 'n_words': 126}