dotenv

Loads environment variables from .env for nodejs projects. (by motdotla)

Stats

Basic dotenv repo stats
7
13,306
0.0
13 days ago

motdotla/dotenv is an open source project licensed under BSD 2-clause "Simplified" License which is an OSI approved license.

Dotenv Alternatives

Similar projects and alternatives to dotenv

  • GitHub repo Express

    Fast, unopinionated, minimalist web framework for node.

  • GitHub repo axios

    Promise based HTTP client for the browser and node.js

  • GitHub repo PM2

    Node.js Production Process Manager with a built-in Load Balancer.

  • GitHub repo Mongoose

    MongoDB object modeling designed to work in an asynchronous environment.

  • GitHub repo winston

    A logger for just about everything.

  • GitHub repo joi

    The most powerful data validation library for JS

  • GitHub repo chalk

    🖍 Terminal string styling done right

  • GitHub repo apollo-server

    🌍 GraphQL server for Express, Connect, Hapi, Koa and more

  • GitHub repo eleventy 🕚⚡️

    A simpler static site generator. An alternative to Jekyll. Transforms a directory of templates (of varying types) into HTML.

  • GitHub repo DOMPurify

    DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:

  • GitHub repo node-fetch

    A light-weight module that brings the Fetch API to Node.js

  • GitHub repo node-config

    Node.js Application Configuration

  • GitHub repo rimraf

    A `rm -rf` util for nodejs

  • GitHub repo Visual Studio Code

    Public documentation for Visual Studio Code

  • GitHub repo CodeceptJS

    Supercharged End 2 End Testing Framework for NodeJS

  • GitHub repo leapp

    Leapp is the tool to access your cloud; It securely stores your access information and generates temporary credential sets to access your cloud ecosystem from your local machine.

  • GitHub repo frutas

    Um app sobre informações nutricionais de frutas

  • GitHub repo covid-graphql

    Learning tool to showcase REST to GraphQL for blog posts

  • GitHub repo men-backend-codebase

NOTE: The number of mentions on this list indicates mentions on common posts. Hence, a higher number means a better dotenv alternative or higher similarity.

Posts

Posts where dotenv has been mentioned. We have used some of these posts to build our list of alternatives and similar projects - the last one was on 2021-04-20.
  • Host and Use Redis for Free
    dev.to | 2021-04-20
    After filling out the project details, cd into your project and install redis, a Node.js client for Redis, and dotenv, an environment variable loader.
  • Which NPM
    reddit.com/r/Discordjs | 2021-04-17
    Just so people know, there ARE NPM packages for Discord.js. These include the express package (used for bot hosting) and dotenv (used for hiding keys)
  • How to implement '.env' variables in Gatsby and React
    dev.to | 2021-04-15
    For starters: this is a universal instruction. Go to the root of your project in your terminal (where the 'package.json' file is stashed). Normally there should be a 'package.json' already, else you need to make one first. To use this dependency you need to install the dotenv package. I mainly work with npm package manager but you can also install this package with yarn:
  • How to Set Environment Variables in Next.js
    dev.to | 2021-04-09
    First of all, you don't need to download dotenv package anymore.
  • A MERN stack update for 2021. - Part A: Server-side.
    dev.to | 2021-04-09
    First of all, the project loads the environment variables. For that is used dotenv. A npm library that allows you to create environment variables instead of specifying sensitive data inside the server file. After the installation, you need to create a .env file on your project's root, like the example below.
  • How to read all lines from .env and set as environment variable using Windows
    reddit.com/r/node | 2021-03-28
    This doesn't directly answer your question, but there are modules that do this (https://www.npmjs.com/package/dotenv). And you can start a node process after reading it:
  • Protect the private key for sign transactions with Web3JS in NodeJS
    reddit.com/r/ethdev | 2021-03-28
    First thing to do is to work with environment variables to prevent that your key is hard-coded in your code and accidentally sent to GitHub or somewhere else ;) You can save your key in a .env file in your project directory and read this file with the npm package dotenv: https://www.npmjs.com/package/dotenv
  • I created a PlayStation 5 Project
    Looks awesome, one note -- I know this is a side project to improve on, but I'd really recommend you pull out your firebase credentials and use something like https://www.npmjs.com/package/dotenv to help with that kind of stuff. Keep it up!
  • What do you use to manage environment variables?
    reddit.com/r/node | 2021-03-15
    I second dotenv, it's simple and works really well. Don't commit the .env files, but I always commit a .env.example file.
  • process.env - process is not defined?
    reddit.com/r/reactjs | 2021-03-13
    Ah, that would explain it. You need to load the environment variables into NodeJS, which you can do with the dotenv package.
  • Enhanced Serverless GitHub Metrics
    dev.to | 2021-03-11
    As we have previously seen, I want to populate the variables for Terraform automatically. For this, I think the dotenv project is helpful. Set up a .env file to store your variables and, if there isn't an integration or you're a purist (like me), you can source the file and run any command you want like this: "source .env && terraform plan." It will export all variables, and Terraform will pick them up and assign them to the elements defined in the variables file.
  • Using environment variables when testing with Jest in NodeJs
    dev.to | 2021-03-11
  • DB connectivity
    reddit.com/r/node | 2021-03-06
    I was going to write a guide for you utilizing environment variables and dotenv package but I found a great tutorial to follow to hide your secrets.
  • Sending Emails with Nuxt.js the Easy Way
    dev.to | 2021-03-04
    Note that you probably should pass the credentials or the whole config via environment variables (e.g. via dotenv).
  • How to use 11ty with Headless WordPress and deploy to Netlify
    dev.to | 2021-02-28
    At this point, it's best practice to remove your API endpoint URLs from your code and use a .env file instead. So let's do that by installing the dotenv package: npm i dotenv. Next, create a .env file in the root of your project. This is where we'll add all of our secret endpoint URLs. If you created a .gitignore file earlier, make sure to have .env* in the file. This will tell git to ignore all .env files.