tar-map-stream
1.0.0 • Public • Published tar-map-stream
Streaming mapping of tarball headers
npm install tar-map-stream
Usage
var map = require('tar-map-stream')
var stream = map(function(header) {
header.name = header.name.split('/').slice(1).join('/')
return header
})
fs.createReadStream('archive.tar')
.pipe(stream)
.pipe(fs.createWriteStream('stripped-archive.tar'))
License
MIT
/tar-map-stream/
//
Package Sidebar
Install
Weekly Downloads