feat: add dotenv content on nodejs roadmap (#1935)

* feat: add Set JavaScript content

* feat: add dotenv content

Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
pull/1933/head^2
Aroyan 2 years ago committed by GitHub
parent 9c8254f080
commit 3c8d8861e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      content/roadmaps/107-nodejs/content/106-nodejs-command-line-apps/104-environment-variables/100-dotenv.md

@ -1,8 +1,10 @@
# Dotenv # dotenv
The dotenv is a zero-dependency module that loads environment variables from a . env file into process. env dotenv is a zero-dependency module that loads environment variables from a `.env` file into [process.env](https://nodejs.org/docs/latest/api/process.html#process_process_env). Storing configuration in the environment separate from code is based on [The Twelve-Factor App methodology](https://12factor.net/config).
<ResourceGroupTitle>Free Content</ResourceGroupTitle> <ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Official Docs' href='https://github.com/motdotla/dotenv#readme'>dotenv Docs</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.npmjs.com/package/dotenv'>Dotenv package</BadgeLink> <BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.npmjs.com/package/dotenv'>Dotenv package</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://zetcode.com/javascript/dotenv/'>Dotenv tutorial</BadgeLink> <BadgeLink colorScheme='yellow' badgeText='Read' href='https://zetcode.com/javascript/dotenv/'>Dotenv tutorial</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.freecodecamp.org/news/how-to-use-node-environment-variables-with-a-dotenv-file-for-node-js-and-npm/'>How to Use Node Environment Variables with a DotEnv File for Node.js and npm</BadgeLink> <BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.freecodecamp.org/news/how-to-use-node-environment-variables-with-a-dotenv-file-for-node-js-and-npm/'>How to Use Node Environment Variables with a DotEnv File for Node.js and npm</BadgeLink>

Loading…
Cancel
Save