1.0.1 • Published 6 years ago

pipe-extract-file v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

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