pzip
uses the zip
binary to create encrypted zip files that can be unlocked
with a specified password.
npm install pzip
var pzip = require('pzip')
, fs = require('fs')
, zip = pzip('private.csv', '123')
zip.stdout.pipe(fs.createWriteStream('encrypted.zip'))
Creates an instance of the zip
binary that will produce a passworded archive.
options
are passed directly to child_process.spawn
- Handle directories
- Handle globs