elicwhite / tar-contents

Read the contents of a tar file
1 stars 0 forks source link

tar-contents Build Status

Read the contents of a tar file

npm install tar-contents --save

Example

var tarContents = require('tar-contents');

tarContents.getFiles('myFile.tar.gz')
.then(function(files) {
  console.log(files);
});

getFiles returns a Bluebird promise which results in an array with the contents of the tar.