unjar-from-url
Version:
Downloads JAR files from urls and unzipps them right away from your package.json Edit
58 lines (40 loc) • 1.6 kB
Markdown
[](https://travis-ci.org/emreavsar/unjar-from-url)
[](https://coveralls.io/github/emreavsar/unjar-from-url?branch=master)
Downloads JAR files from urls and unzipps them right away from your package.json or command line arguments
`npm install unjar-from-url --save-dev` if you want to use it in your project
`npm install unjar-from-url --global` if you want to use it globally on command line
In your `package.json`:
```
"scripts": {
// in case of you want to download jars after the install process
"postinstall": "unjar-from-url"
},
// ...
"unjar-from-url-config": [
{
"directory": "selenium-server-standalone":
"url": "http://selenium-release.storage.googleapis.com/2.43/selenium-server-standalone-2.43.1.jar",
}
]
```
Run with `npm run-script unjar`.
This will download and uncompress the jar files into folder `node_modules/unjar-from-url/node_modules/selenium-server-standalone`.
In your command line:
```
unjar-from-url \
--urls http://selenium-release.storage.googleapis.com/2.43/selenium-server-standalone-2.43.1.jar \
--download-dirs selenium-server-standalone \
--destination-dirs=/tmp
```
This will download and uncompress the jar files into folder `/tmp/selenium-server-standalone`.
`npm test`
TBD.
MIT