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

tar-install

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tar-install

Unpack a remote .tgz file

latest
Source
npmnpm
Version
0.2.2
Version published
Weekly downloads
6
-40%
Maintainers
1
Weekly downloads
 
Created
Source

tar-install

const install = require('tar-install')

// Any .tgz url works
const url = 'https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz'

// Pass which directory to install into
await install(url, '/path/to/parent')

Per the example above, lodash would be installed at /path/to/parent/lodash-4.17.5. The install promise resolves with the destination path.

The root directory is created if it doesn't exist, and it defaults to the working directory.

You can use https://github.com/aleclarson/tar-url to obtain the url.

Run node test <name> <version> to try it out. The package is installed in the test directory. Both name and version are optional. The default is latest version of lodash.

Keywords

install

FAQs

Package last updated on 23 Mar 2021

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