@grund/env

0.0.85 • Public • Published

Overview

When @grund/env is loaded it starts from the cwd (current working directory) and trying to find all env(.schema).grund files. It then merges and parses them before injecting them into process.env.

Usage

Just require/import @grund/env wherever you want to load your environment variables

Parsing steps

  1. Find all relevant env(.schema).grund files
  2. Load and merge into one concatenated file
  3. Tokenize this merged content
  4. Parse the tokenized content
  5. Execute the parsed content
  6. Return the executed content

TODO

  • Investigate the naming of the files. If we want to, we might allow several naming convensions. E.g. if one feels that env.grund is ugly, we might implement support for e.g. .genv or whatever - something that is more similar to .env.

Readme

Keywords

none

Package Sidebar

Install

npm i @grund/env

Weekly Downloads

1

Version

0.0.85

License

MIT

Unpacked Size

385 kB

Total Files

168

Last publish

Collaborators

  • schlagerkhan