2.0.7 • Published 2 years ago

3nv v2.0.7

Weekly downloads
33
License
MIT
Repository
github
Last release
2 years ago

3nv

tool for managing .env file

yarn add 3nv

Usage

Get config from .env file without modifying process.env

import { init } from './lib/index.js';

const config = init();

Init parameters:

NameDefault valuePossible valuesDescription
path'.env'stringPath to .env file
modifyProcessEnvfalsebooleanAdd env vars to process.env object
verbosefalsebooleanExtended logging
copyFromExampletruebooleanCopy .env.example content to .env file if it doesn't exists

CLI

The package provides command for copying your .env template to .env.example file:

# package.json
{
  "scripts": {
    "dump": "3nv dump"
  }
}
yarn dump
2.0.3

2 years ago

2.0.2

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.1

4 years ago

1.0.0

4 years ago