tahamajs's picture
download
raw
371 Bytes
const tar = require('tar-stream')
const fs = require('fs')
const path = require('path')
const pipeline = require('pump') // eequire('stream').pipeline
fs.createReadStream('test.tar')
.pipe(tar.extract())
.on('entry', function (header, stream, done) {
console.log(header.name)
pipeline(stream, fs.createWriteStream(path.join('/tmp', header.name)), done)
})

Xet Storage Details

Size:
371 Bytes
·
Xet hash:
0441b750d32da1916854065122a0ff1d6a95f5108f560e63851feed402c56711

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.