This package has been deprecated

Author message:

This Package is not longer maintained

gulp-cipher-json

1.0.3 • Public • Published

gulp-cipher-json

NPM version JavaScript Style Guide Dependency Status devDependency Status

Package gulp-cipher-value
Description Gulp 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.

Package Sidebar

Install

npm i gulp-cipher-json

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

5.03 kB

Total Files

4

Last publish

Collaborators

  • nbarikipoulos