encryption-gulp

1.0.5 • Public • Published

Encryption for file, folders or whole project via gulp

Instaling:

npm i encryption-gulp -D



Props

Name Type Default Description
password string password you secret password for encrypting / decrypting
decrypt boolean false is should do decryption


Usage encryption for one file

in your gulpfile.js:

const gulp = require('gulp');
const encryption = require('encryption-gulp');
 
gulp.task('encrypt', function() {
 gulp.src('src/index.js')
   .pipe(encryption({
     password: 'password',
     decrypt: false,
   }))
   .pipe(gulp.dest('dist-enc'));
});
 

Usage encryption for whole project

const gulp = require('gulp');
const encryption = require('encryption-gulp');
 
gulp.task('encrypt', function() {
 gulp.src('src/**/*')
   .pipe(encryption({
     password: 'password',
     decrypt: false,
   }))
   .pipe(gulp.dest('dist-enc'));
});

Usage decryption

just need set decrypt: true

const gulp = require('gulp');
const encryption = require('encryption-gulp');
 
gulp.task('decryption', function() {
 gulp.src('dist-enc/index.js')
   .pipe(encryption({
     password: 'password',
     decrypt: true,
   }))
   .pipe(gulp.dest('src-dec'));
});


If you have any issue go here ISSUES



License

MIT

Free, Hell Yeah! 😈

Readme

Keywords

Package Sidebar

Install

npm i encryption-gulp

Weekly Downloads

9

Version

1.0.5

License

MIT

Unpacked Size

3.45 kB

Total Files

3

Last publish

Collaborators

  • sakals