Initial project scaffold for minecraft-java-manager. Adds package.json and package-lock.json, README update, index.js entrypoint and test.js. Introduces src modules: checker (detects Java version), installer (downloads JRE components with redirects, SHA1 validation, progress/events and concurrency), web (fetches launcher/runtime manifests and component data), systeminfo (platform key and install path resolution) and config (endpoints). Declares dependencies adm-zip and node-downloader-helper.
7 lines
118 B
JavaScript
7 lines
118 B
JavaScript
const lib = require("./index")
|
|
|
|
async function main() {
|
|
await lib.installJava("jre-legacy", 8, "./java")
|
|
}
|
|
|
|
main() |