dotenv-prompt

A nodejs module for creating .env file

Usage no npm install needed!

<script type="module">
  import dotenvPrompt from 'https://cdn.skypack.dev/dotenv-prompt';
</script>

README

dotenv-prompt

Read envs from console input and save to .env file.

Usage

var dotenv = require('dotenv-prompt');
dotenv.create(['PORT', 'HOST'], function(error) {
  
});

API

create(data, options, callback)

Prompt envs and save to .env file.

get(data, options, callback)

Prompt envs.

save(data)

Save envs to .env file.