untar-request

2.0.2 • Public • Published

bitHound Score npm

About

This module allows you to download a .tar.gz archive from a url, and decompress it on the fly by utilizing nodejs streams, finally writing it to a selected directory.

Usage

var untarRequest = require('untar-request');

var options = {
     url: 'http://example.com/some-archive.tar.gz',
     dest: './'
}

untarRequest(options, function() {
    console.log('done');
});

You may want to use options.dmode and options.fmode to set appropriate access modes for directories and files, e.g.:

var options = {
     url: 'http://example.com/some-archive.tar.gz',
     dest: './',
     dmode: 0555,
     fmode: 0444
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.2
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.2
    8
  • 2.0.1
    1
  • 2.0.0
    0
  • 1.0.0
    1

Package Sidebar

Install

npm i untar-request

Weekly Downloads

5

Version

2.0.2

License

MIT

Last publish

Collaborators

  • noodny