Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

tar-files

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tar-files

convenience wrapper around fs gunzip and node-tar to stream file entries' data.

npmnpm
Version
1.0.2
Version published
Weekly downloads
4
-42.86%
Maintainers
1
Weekly downloads
 
Created
Source

tar-files

convenience wrapper around fs gunzip and node-tar to stream file entries' data.

var te = require('tar-files')
var eos = require('end-of-stream')

te('package.tar',function(stream,cb){
  if(stream.path === "package/README.md") {
    eos(stream.pipe(fs.createWriteStream('./tar-README.md')),cb)
  } else {
    // skip this entry
    cb();
  }
},function(err){
  
  // all done!

})

this example saves the README.md file from package.tar to the file ./tar-README.md

  • works with gzipped or not compressed tars.

FAQs

Package last updated on 28 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts