New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

encryption-gulp

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

encryption-gulp

Encrypt project or file via gulp

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
8
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Encryption for file, folders or whole project via gulp

Instaling:

npm i encryption-gulp -D

Props

NameTypeDefaultDescription
passwordstringpasswordyou secret password for encrypting / decrypting
decryptbooleanfalseis 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! 😈

Keywords

gulp

FAQs

Package last updated on 08 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts