Wondering what’s next for npm?Check out our public roadmap! »

    @ladjs/env

    3.0.0 • Public • Published

    @ladjs/env

    build status code coverage code style styled with prettier made with lass license

    Environment configuration loader for Lad

    Table of Contents

    Install

    npm:

    npm install @ladjs/env

    yarn:

    yarn add @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

    Name Website
    Nick Baugh http://niftylettuce.com/

    License

    MIT © Nick Baugh

    Install

    npm i @ladjs/env

    DownloadsWeekly Downloads

    22

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    7.68 kB

    Total Files

    15

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar