Created
October 10, 2014 04:06
-
-
Save karlbright/bf78ff6bc3902df8518e to your computer and use it in GitHub Desktop.
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 fs = require('fs'); | |
var zlib = require('zlib'); | |
var tar = require('tar'); | |
var stream = fs.createReadStream('twbs-bootstrap-v3.2.0-0-gc068162.tar.gz').on('error', console.log); | |
stream.pipe(zlib.Unzip()) | |
.pipe(tar.Parse()) | |
.on('entry', function(e) { | |
var path = e.props.path; | |
if(/^.*\/docs/.test(path)) console.log(path); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment