ib-env
v1.0.4
Published
Parse environment variabels from environment or file
Downloads
6
Maintainers
Readme
environment variable parser
Usage
Create a file ".env" with contents
key=value
pw=secret
Import this module with require
#!js
var env = require("ib-env")
var pw = env("pw")
var host = env("host", "localhost") // use "localhost" as default value
Don't forget to add your .env file in .gitignore if you have sensitive data in the environment file.