1.0.4 • Published 10 years ago

ib-env v1.0.4

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
10 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

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago