turns a directory tree into a .tar.gz stream
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test/foo
.gitignore
index.js
package.json
readme.md
test.js

readme.md

dir-tar-stream

update: you should use https://npmjs.org/package/tar-fs instead of this module

NPM

Takes a path to a folder and returns a tar.gz stream of the folder contents.

require('dir-tar-stream')('./foo').pipe(fs.createWriteStream('foo.tar.gz'))

To extract the stream on the other end you can use the tar module like so:

var tar = require('tar')
dirTarStream.pipe(tar.Extract({path: './output'}))

license

BSD