Skip to content

A node package to help apply the mustache templating language to create dynamic dotenv variables

License

Notifications You must be signed in to change notification settings

samcrosoft/dotenv-mustache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotenv-Mustache

Dotenv-Mustache integrates the lovely Mustache templating language into dotenv. This would allow for the creation of dynamic environment variables.

NPM version

Install

npm install dotenv --save
npm install dotenv-mustache --save

Usage

At the entry point of your application, you should require dotenv and dotenv-mustache, and call it into you code as follows.

var dotenv = require('dotenv')
var dotMustache = require('dotenv-mustache')

var myEnv = dotenv.config()
dotMustache(myEnv)

See test/.env for examples of mustache expressions in environment variables.

About

A node package to help apply the mustache templating language to create dynamic dotenv variables

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published