0.0.2 • Published 10 years ago

pzip v0.0.2

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

pzip Build Status

pzip uses the zip binary to create encrypted zip files that can be unlocked with a specified password.

Installation

npm install pzip

Usage

var pzip = require('pzip')
  , fs = require('fs')
  , zip = pzip('private.csv', '123')

zip.stdout.pipe(fs.createWriteStream('encrypted.zip'))

pzip(filePath, password, options)

Creates an instance of the zip binary that will produce a passworded archive.

options are passed directly to child_process.spawn

TODO

  • Handle directories
  • Handle globs

Credits

Ben Parnell