1.0.1 • Published 4 years ago
env-importer v1.0.1
env-importer
This small package loads your enviroment variables from the .env file into process.env, without the help of any other npm dependency!
Installing
npm i env-importerImporting all enviroment variables with 1 line of code
require('env-importer').load()Usage
In the .env file:
type=small
password=sussy
this is a commentAnd then in index.js
require('env-importer').load()
console.log(process.env) // { type: 'small', password: 'sussy' } Getting the package version
console.log(require('env-importer').version)