Skip to content

Instantly share code, notes, and snippets.

@karlbright
Created October 10, 2014 04:06
Show Gist options
  • Save karlbright/bf78ff6bc3902df8518e to your computer and use it in GitHub Desktop.
Save karlbright/bf78ff6bc3902df8518e to your computer and use it in GitHub Desktop.
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