<commit_before>[![Build Status](https://travis-ci.org/digitalsadhu/env-reader.svg?branch=master)](https://travis-ci.org/digitalsadhu/env-reader)

[![NPM](https://nodei.co/npm/env-reader.png)](https://nodei.co/npm/env-reader/)

env-reader
==========

Streaming environment variable reader

Accepts simple key=value data and passes it on after performing some basic
filtering out of things like blank lines, comment lines and invalid env lines

## Examples

Require the module

```js
var env = require('env-reader')()

```

Listening for data events
```js
env.on('data', function (envLine) {
  //do something
})
```

Writing data
```js
env.write('\n#comment line\ninvalid line\nvalid=line\n    \n')

//only valid=line would be passed emitted, the rest would be disguarded
```<commit_msg>Add Media Suite repo badge<commit_after>[![Build Status](https://travis-ci.org/digitalsadhu/env-reader.svg?branch=master)](https://travis-ci.org/digitalsadhu/env-reader)

[![NPM](https://nodei.co/npm/env-reader.png)](https://nodei.co/npm/env-reader/)

[![Media Suite](http://mediasuite.co.nz/ms-badge.png)](http://mediasuite.co.nz)

env-reader
==========

Streaming environment variable reader

Accepts simple key=value data and passes it on after performing some basic
filtering out of things like blank lines, comment lines and invalid env lines

## Examples

Require the module

```js
var env = require('env-reader')()

```

Listening for data events
```js
env.on('data', function (envLine) {
  //do something
})
```

Writing data
```js
env.write('\n#comment line\ninvalid line\nvalid=line\n    \n')

//only valid=line would be passed emitted, the rest would be disguarded
```
{'fraction_non_alphanumeric': 0.16346153846153846, 'fraction_numerical': 0.0, 'mean_word_length': 4.801393728222997, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '696719', 'n_tokens_mistral': 565, 'n_tokens_neox': 538, 'n_words': 144}