Parse a string containing environment variables to a key/value object
npm install parse-env-stringParse a string containing environment variables to a key/value object.



```
npm install parse-env-string --save
`js
const parseEnvString = require('parse-env-string')
const env = parseEnvString('foo=hello bar= baz=", world"')
assert.deepStrictEqual(env, {
foo: 'hello',
bar: '',
baz: ', world'
})
`
This modules exposes a single function:
``
parseEnvString([string])
It takes a string and returns an object. If given null or undefinedTypeError
an empty object is returned. If given anything else, a is
thrown.
An Error will also be thrown if the provided string doesn't contain1a=b`, an error
valid environment variables. E.g. if given the string
will be thrown because environment variables cannot have a digit as the
first character.