1.0.3 • Published 4 years ago

gulp-cipher-json v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

gulp-cipher-json

NPM version JavaScript Style Guide Dependency Status devDependency Status

Packagegulp-cipher-value
DescriptionGulp wrapper for json-cipher-value. (De)cipher values of json files remaining their types.

Install

npm install gulp-cipher-json --save-dev

Usage

const gulp = require('gulp')
const cipherJSON = require('gulp-cipher-json')

gulp.task('default', _ => gulp.src('src/data/*.json')
  .pipe(cipherJSON(
    'encrypt',
    'my secret password from anywhere'
  ))
  .pipe(gulp.dest('dist/data'))
)

cipherJSON(action, secret, options)

action: either 'encrypt' or 'decrypt'

secret: password

options: json-cipher-value options. Note the default settings perform an aes-256-ctr ciphering.

Credits

License

This module is MIT licensed. See LICENSE.