Skip to content

🔧 A .env file plugin for gulp: compiling .env to JSON

License

Notifications You must be signed in to change notification settings

pine/gulp-dotenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-dotenv

npm version Build Status Dependency Status devDependency Status

A .env file plugin for gulp: compiling .env to JSON

Installation

$ npm install gulp-dotenv --save

Usage

.env is a \n separated key-value configuration file like KEY=VALUE.

var dotenv = require('gulp-dotenv');
var rename = require('gulp-rename');

gulp.task('dotenv', function () {
  return gulp.src('.env')
    .pipe(dotenv())
    .pipe(rename('env.json'))
    .pipe(gulp.dest('dist'));
});

License

MIT © Pine Mizune

About

🔧 A .env file plugin for gulp: compiling .env to JSON

Resources

License

Stars

Watchers

Forks

Packages

No packages published