pipe-extract-file

Extract a single file from zip using a pipe supporting tar zip gz

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
pipe-extract-file
1.0.14 years ago4 years agoMinified + gzip package size for pipe-extract-file in KB

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> ) )