New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

untar-request

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

untar-request

A utility for ungzipping and untaring a file directly from a url while it is being downloaded

latest
Source
npmnpm
Version
2.0.2
Version published
Maintainers
1
Created
Source

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
}

Keywords

tar

FAQs

Package last updated on 26 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts