Socket
Book a DemoInstallSign in
Socket

@ladjs/env

Package Overview
Dependencies
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ladjs/env

Environment configuration loader for Lad

latest
Source
npmnpm
Version
4.0.0
Version published
Weekly downloads
684
-35.9%
Maintainers
5
Weekly downloads
 
Created
Source

@ladjs/env

build status code style styled with prettier made with lass license

Environment configuration loader for Lad

Table of Contents

Install

npm:

npm install @ladjs/env

Usage

const env = require('@ladjs/env')();

console.log(env);

Options

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.

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,
});

Contributors

NameWebsite
Nick Baughhttp://niftylettuce.com/

License

MIT © Nick Baugh

Keywords

.env

FAQs

Package last updated on 09 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts