Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blahah/java-download
Node module to download a particular Java package (JVM / JDK) from Oracle
https://github.com/blahah/java-download
Last synced: 6 days ago
JSON representation
Node module to download a particular Java package (JVM / JDK) from Oracle
- Host: GitHub
- URL: https://github.com/blahah/java-download
- Owner: blahah
- Created: 2016-05-08T18:53:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-09T08:16:16.000Z (over 6 years ago)
- Last Synced: 2024-09-17T05:18:35.149Z (about 2 months ago)
- Language: JavaScript
- Size: 1.62 MB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# java-download
downloads a Java JVM release package from Oracle
just [electron-download](https://github.com/electron-userland/electron-download) by modified to get java.
This is mostly a mashup of [electron-download](https://github.com/electron-userland/electron-download) and [Java-JRE-JDK-Downloader](https://github.com/inetquestion/Java-JRE-JDK-Downloader)
### usage
```plain
$ npm install --global java-download
$ java-download --version=8 --type=jre
$ javadl --version=8 --type=jre --platform=linux
``````js
var download = require('java-download')download({
version: 8,
arch: 'x64',
platform: 'windows',
cache: './zips' // defaults to /.java
}, function (err, path) {
// path will be the path of the file that it downloaded.
// if the file was already cached it will skip
// downloading and call the cb with the cached file path
// if it wasn't cached it will download the file and save
// it in the cache path
})
```