Nondigestible Purple Mayonnaise
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    env-parserpublic

    Build Status

    NPM

    Media Suite

    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

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

    Listen for data events

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

    Write env data

    envParser.write('ENV_KEY="some value"')
     
    //or 
     
    envParser.write('ENV_KEY=some value')

    install

    npm i env-parser

    Downloadslast 7 days

    97

    version

    1.0.1

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar