0.0.2 • Published 8 years ago

packfy v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Node.js Packfy 0.0.2 (beta)

npm version Dependency Status Coverage Status Build Status

This module is under development right now no ready for production

This package was designed to be a multi format lib to compact / extract files and folders.

How to install

From repository

git clone https://github.com/virgilioneto/node-packfy.git
cd node-packfy
npm install
npm test

From NPM

npm install packfy --save

How to use

Zip a single file

const Zip = require('packfy').Zip;
Zip.packFile(pach, options)
    .on('error', (error) => {
        // If error
    })
    .on('file', (filePath) => {
        // If success
    });

Zip a file list into a single package

const Zip = require('packfy').Zip;
var pathList = [path1, path2, ..., pathN];
Zip.packFiles(pathList, options)
    .on('error', (error) => {
        // If error
    })
    .on('file', (filePath) => {
        // If success
    });

Clock here for more information, samples and API documentation.