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