0.2.2 • Published 3 years ago

tar-install v0.2.2

Weekly downloads
19
License
MIT
Repository
github
Last release
3 years ago

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.

0.2.1

3 years ago

0.1.2

3 years ago

0.2.0

3 years ago

0.2.2

3 years ago

0.1.3

3 years ago

0.1.1

5 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago