Nuns Practicing Misanthropy
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    enpublic

    env

    Creates a global env function object. Just to be terse.

    require("en");
     
    console.log(env.development);
    //true
    console.log(env.production);
    //undefined
     
    console.log(env('development'));
    //true
     
    console.log(env('Your env is: ' + env));
    //Your env is: development
     

    To set the current env, use the standard NODE_ENV environment variable.

    $ NODE_ENV=production node app.js
    

    License

    MIT

    install

    npm i en

    Downloadsweekly downloads

    27

    version

    1.0.1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar