Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

Latest commit

 

History

History
55 lines (36 loc) · 1.41 KB

README.md

File metadata and controls

55 lines (36 loc) · 1.41 KB

gulp-cipher-json

NPM version JavaScript Style Guide

❗ THIS PACKAGE IS NOT LONGER MAINTAINED
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.