`.env` file support issue tracker
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 122k
- Forks
- 37.3k
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 283
Description
This is a follow-up of dotenv support pr to track the development process, and answer some questions that require a general discussion for making the decision to implement them.
Todos:
- Precisely define the syntax of
.envfiles, and consider a better format not based on ini - Supporting absolute paths for .env file https://github.com/nodejs/node/pull/51425
- Should we support multiple
--env-filethrough the CLI? (cc @GeoffreyBooth) https://github.com/nodejs/node/pull/49542 - Support multi-line values https://github.com/nodejs/node/pull/51289
- Follow up after @tniessen's PR has landed to main https://github.com/nodejs/node/pull/49213
- Should we add a programmatic API? If yes, what would be the use-case? (cc @cjihrig) https://github.com/nodejs/node/pull/51476
Questions:
-
Should we merge NODE_OPTIONS if both environment variable and .env version exist? Currently, we prefer environment variable over .env configuration.(cc @ljharb) https://github.com/nodejs/node/pull/49217 - Should we throw if
.envfile does not exist? We currently follow the default behavior ofdotenvpackage and do not throw. (cc @MoLow)
Please feel free to edit this issue in case there are more questions that needs to be answered.
cc @nodejs/tsc
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
This issue is a discussion tracker for Node.js .env support, with completed items linked to pull requests rather than a named file or test. Review the linked dotenv-related pull requests and remaining issue history first; the listed questions are marked resolved, so there is no clearly defined remaining change or completion test here.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend, cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100