dir-tar-stream

0.1.2 • Public • Published

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

/dir-tar-stream/

    Package Sidebar

    Install

    npm i dir-tar-stream

    Weekly Downloads

    5

    Version

    0.1.2

    License

    BSD-2-Clause

    Last publish

    Collaborators

    • maxogden