pipe-extract-file

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i pipe-extract-file

Weekly Downloads

123

Version

1.0.1

License

ISC

Unpacked Size

2.72 kB

Total Files

4

Last publish

Collaborators

  • kasthor