Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

env-auto

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

env-auto - npm Package Compare versions

Comparing version
1.3.0
to
1.3.1
+1
-1
package.json
{
"name": "env-auto",
"version": "1.3.0",
"version": "1.3.1",
"description": "convert app.json in to .env",

@@ -5,0 +5,0 @@ "main": "index.js",

# Why this code?
This is a very simple and small project create to save me some time when working on web servers hosted on Heroku.
This is a very simple and small project that I created to save some time when working on web servers hosted on Heroku.
I'm a big fan of the [Heroku Button](https://devcenter.heroku.com/articles/heroku-button) because it allows me to create a project deployable by anyone in my team with detailed instructions how to set up all the environment variables, thank to the `app.json` file.
I'm a big fan of the [Heroku Button](https://devcenter.heroku.com/articles/heroku-button), because it allows me to create a project that's deployable by anyone on my team, with detailed instructions on how to set up all of the environment variables, thanks to the app.json file.
Locally we do use Foreman to load the local environment variables from the `.env` file, and some times a project can end up with lots of variables.
Locally, we use Foreman to load the local environment variables from the `.env` file, and projects can sometimes end up with lots of variables.
With this tiny app, if you run it in a folder that has the `app.json` file, it will automatically create a `.env` for you. The only thing that you then need to do, is to set the right data to those variables.
With this tiny app, running it in a folder that has the `app.json` file will automatically create a `.env` for you. The only thing you need to do is to set the right data to those variables.
# Example
This is an example app.json file that you might have in your project
This is an example app.json file that you might have in your project.

@@ -37,3 +37,3 @@ ```

```
And this will be the output of such file
This file will converted in this output.

@@ -69,5 +69,4 @@ ```

```
As you can see, the description will be nicely formatted; the variable will be ready to use.
As you can see the description will be nicely formated, and the variable ready to be used.
## Installation

@@ -82,2 +81,2 @@

If you find this project useful, don't forget to give it a star :)
If you find this project useful, don't forget to give it a star! :)