occams-env

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i occams-env

Weekly Downloads

0

Version

0.1.0

License

ISC

Unpacked Size

5.52 kB

Total Files

8

Last publish

Collaborators

  • lxghtless