occams-env
A simple node app env & settings module.
Features
- Built on top of occams-conf and dotenv
- Import dotenv envs into occams-conf with camel keys automatically.
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 = ; oe;//=> /Users/awesome-devoehome;//=> /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