1.0.4 • Published 9 years ago

ib-env v1.0.4

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
9 years ago

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.

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago