1.0.2 • Published 3 years ago
tar-drive v1.0.2
tar-drive
npm install tar-driveUsage
const fs = require('fs')
const tar = require('tar-drive')
// packing a drive
tar.pack(drive).pipe(fs.createWriteStream('archive.tar'))
// extracting a drive
fs.createReadStream('archive.tar').pipe(tar.extract(drive))API
const stream = pack(drive[, options])
Options include:
{
pack: tarStream.pack(options)
}const stream = extract(drive[, options])
Options include:
{
extract: tarStream.extract(options)
}License
Apache-2.0