1.0.2 • Published 3 years ago

envmate v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

envmate

envalid + dotenv + cli prompts = <3

const envmate, { port, email } = require("envmate");

const env = envmate({
  PORT: port(),
  EMAIL: email({ default: "admin@example.com" }),
});

It will use variables from .env or environment. If some are missing it will ask prompt for missing variables and save them into .env.