Skip to content

Compiles environment vars into a predefined object structure.

Notifications You must be signed in to change notification settings

datapeopleconnected/node-env-obj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-env-obj

Reads an environment file into the programs environment which is then applied to a predefined object structure.

Usage

node-env-obj is configured and creates a Singleton the first import.

  // entry: ./index.js
  const Config = require('node-env-obj')({
    envPath: '../'
  });

  // any further files: ./folder/file.js
  const Config = require('node-env-obj')();

About

Compiles environment vars into a predefined object structure.

Resources

Stars

Watchers

Forks

Packages

No packages published