pipe-extract-file
v1.0.1
Published
Extract a single file from zip using a pipe supporting tar zip gz
Downloads
203
Readme
Pipe Extract File
Description
Extracts a single file from a compressed file, supporting tar/unzip/gzip file formats
Sample
const { createWriteStream, createReadStream } = require('fs'),
extract = require('pipe-extract-file')
;
createReadStream( <source> )
.pipe( extract( <file-format>, <file-to-extract> ) )
.pipe( createWriteStream( <destination> ) )