ib-env

1.0.4 • Public • Published

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.

Package Sidebar

Install

npm i ib-env

Weekly Downloads

0

Version

1.0.4

License

MIT

Last publish

Collaborators

  • infobaleen-christian