0.1.0 • Published 4 years ago

occams-env v0.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

occams-env

A simple node app env & settings module.

npm version XO code style

Features

First things first...

$ npm i occams-env

Usage

Envs

occams-env supports all the envs occams-conf does. Additionally, the following can be set.

OCCAMS_ENV_IMPORT_ENVS: Enables import of process.env keys into occams-conf with camel keys.

Example

const oe = require('occams-env');

oe.get('home');
//=> /Users/awesome-dev
oe.home;
//=> /Users/awesome-dev

API

occamsEnv.get

keyPath

Type: string

Property path to get from configuration.

CLI

$ npm i -g occams-env
$ oe --help
Usage
    Search for a key path in the oe configuration.
    $ oe [keyPath]

    Examples
      $ oe home
      /Users/awesome-dev