node package manager

archiver

a streaming interface for archive generation

Archiver v1.1.0

a streaming interface for archive generation

Visit the API documentation for a list of all methods available.

npm install archiver --save
var archiver = require('archiver');
var archive = archiver.create('zip', {}); // or archiver('zip', {}); 

Archiver ships with out of the box support for TAR and ZIP archives.

You can register additional formats with registerFormat.

Formats will be changing in the next few releases to implement a middleware approach.