Created
March 15, 2012 00:52
-
-
Save nicolasfont/2040815 to your computer and use it in GitHub Desktop.
tar.gz with node.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fstream = require("fstream"), | |
tar = require("tar"), | |
zlib = require("zlib"); | |
fstream.Reader("src").pipe(tar.Pack()).pipe(zlib.createGzip()).pipe(fstream.Writer("output.tar.gz")); |
How does one get the size of fstream.Reader({path: 'src', type: "Directory"}).pipe(tar.Pack()).pipe(zlib.createGzip())
?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it should be
note the type:dir thing