0.1.2 • Published 6 years ago

node-env-settings v0.1.2

Weekly downloads
5
License
MPL-2.0
Repository
github
Last release
6 years ago

node-env-settings

Travis Coveralls github npm

node-env-settings is a utility library to make reading Node.js application settings from environment variables easier.

It was heavily inspired by django-configurations.

Quickstart

Install node-env-settings:

npm install node-env-settings

Create a new Settings object to read settings from the environment variables:

// settings.js

import { Settings, values } from 'node-env-settings';

export default new Settings({
  DEBUG: values.BooleanValue(false),
  MY_SETTING: values.Value('default value'),
}, 'REACT_APP');

This will attempt to read REACT_APP_DEBUG and REACT_APP_MY_SETTING from your environment variables.

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago