Environment configuration loader for Lad
npm install @ladjs/env



![license]()
> Environment configuration loader for Lad
* Install
* Usage
* Options
* Contributors
* License
[npm][]:
``sh`
npm install @ladjs/env
`js
const env = require('@ladjs/env')();
console.log(env);
`
You can pass any option as you otherwise would normally to [dotenv-extended][].
Here is the default option argument, note that it supports a .env.test path for TEST and TESTING environments as specified through process.env.NODE_ENV.
`js``
const env = require('@ladjs/env')({
encoding: 'utf8',
silent: true,
path: '.env',
defaults: '.env.defaults',
schema: '.env.schema',
errorOnMissing: true,
errorOnExtra: true,
errorOnRegex: false,
includeProcessEnv: true,
assignToProcessEnv: true,
overrideProcessEnv: false,
});
| Name | Website |
| -------------- | -------------------------- |
| Nick Baugh |
##
[npm]: https://www.npmjs.com/
[dotenv-extended]: https://github.com/keithmorris/node-dotenv-extended