Skip to content

alternative of dotenv with the power of yaml in it.

Notifications You must be signed in to change notification settings

devjs1000/dotenv-variable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotenv-variable

  1. add a .env file.
  2. add below format of code.
isProduction: true
production:
  port: 7000
dev:
  port: 8000
  1. import
const dep=require("dot-env-plus");

you can access values from config return or process.env;

const {port}=dep.config();
console.log(port);
dep.config();
console.log(process.env.port);

Releases

No releases published

Packages

No packages published