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

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

env-parser
==========

Streaming environment variable parser

Transform module to handle single properly formed key=value pairs and create
javascript objects from them. Will split on first = and remove quotation from
value if present.

## Examples

Require module

```js
var envParser = require('env-parser')()
```

Listen for data events
```js
envParser.on('data', function (envObjec) {
  //do something with env object which will look like
  // { key: 'ENV_KEY', value: 'some value' }
})
```

Write env data
```js
envParser.write('ENV_KEY="some value"')

//or

envParser.write('ENV_KEY=some value')
```

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

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

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

env-parser
==========

Streaming environment variable parser

Transform module to handle single properly formed key=value pairs and create
javascript objects from them. Will split on first = and remove quotation from
value if present.

## Examples

Require module

```js
var envParser = require('env-parser')()
```

Listen for data events
```js
envParser.on('data', function (envObjec) {
  //do something with env object which will look like
  // { key: 'ENV_KEY', value: 'some value' }
})
```

Write env data
```js
envParser.write('ENV_KEY="some value"')

//or

envParser.write('ENV_KEY=some value')
```

Add Media Suite repo badge
Add Media Suite repo badge
