pzip

0.0.2 • Public • Published

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i pzip

    Weekly Downloads

    13

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • benparnell