gulp-encrypt
v0.2.0
Published
A simple gulp plugin to encrypt files
Downloads
17
Readme
gulp-encrypt
gulp-encrypt plugin for gulp
Usage
First, install gulp-encrypt
as a development dependency:
npm install --save-dev gulp-encrypt
Then, add it to your gulpfile.js
:
var encrypt = require("gulp-encrypt");
gulp.src("./src/*.json")
.pipe(encrypt({
key: process.env.secretKey,
decrypt: false || true
}))
.pipe(gulp.dest("./dist"));
API
gulp-encrypt(options)
options.key
Type: String
Default: null
options.decrypt
Type: Boolean
Default: false