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.4.2
to
1.4.3
+2
-2
package.json
{
"name": "env-auto",
"version": "1.4.2",
"version": "1.4.3",
"description": "convert app.json in to .env",

@@ -8,3 +8,3 @@ "main": "index.js",

"type": "git",
"url": "https://github.com/davidgatti/envAuto"
"url": "https://github.com/davidgatti/env-auto"
},

@@ -11,0 +11,0 @@ "bin": {

@@ -1,14 +0,16 @@

# Why this code?
# πŸš— env-auto
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 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.
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, with detailed instructions on how to set up all of the environment variables, thanks to the `app.json` file.
Locally, we use Foreman to load the local environment variables from the `.env` file, and projects can sometimes end up with lots of variables.
Locally, I use [foreman](https://www.npmjs.com/package/foreman) to load the local environment variables from the `.env` file, and since projects can sometimes end up with lots of env 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.
I created this tiny app to automatically generate the `.env` file while making sure the file won't excede the 80 char ruler mark.
If your `app.json` file has set default values, env-auto will automatically populate the vriables. Anything else will require you to fill in the data.
# 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 +39,3 @@ ```

```
The output of the file will look like this:
If you were to run `env-auto`, this is the output that you would see:

@@ -69,7 +71,7 @@ ```

```
As you can see, the description will be nicely formatted, some variables will already filled based on the options set in the `app.json` file, then the rest is up to you.
As you can see, the description will be nicely formatted, the varaiables with thefault values will be filled automatcially, and the rest is up to you.
## Installation
Install it as a global package, so you can use it through your system.
You have to install `env-auto` as a global package with the following command

@@ -76,0 +78,0 @@ ```bash