@niondigital/env-util
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

@niondigital/env-util

  • Environment variables already set take precedence.
  • Loads environment variables from a .env.local file in the root package's base path (meant to be ignored in git). Already existing environment variables take precedence.
  • Loads environment variables from a .env file in the root package's base path. Already existing environment variables take precedence.

Load additional .env files

import { loadEnvironment } from '@niondigital/env-util';

loadEnvironment('path/to/.env');

Package development

Creating a release

  • Make changes and increase version number package.json/package-lock.json
  • Execute npm run build
  • Commit changes
  • Execute npm publish && git push && git push --tags

Readme

Keywords

none

Package Sidebar

Install

npm i @niondigital/env-util

Weekly Downloads

0

Version

2.0.1

License

none

Unpacked Size

2.35 kB

Total Files

4

Last publish

Collaborators

  • seibert-io
  • sewey