1.0.4 • Published 9 years ago
ib-env v1.0.4
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.