Gathering detailed insights and metrics for @xmcl/java-installer
Gathering detailed insights and metrics for @xmcl/java-installer
Gathering detailed insights and metrics for @xmcl/java-installer
Gathering detailed insights and metrics for @xmcl/java-installer
Provide packages to install Minecraft, launch Minecraft and more to build launcher with NodeJs/Electron!
npm install @xmcl/java-installer
Typescript
Module System
Min. Node Version
Node Version
NPM Version
69.7
Supply Chain
83.3
Quality
75.1
Maintenance
50
Vulnerability
99.6
License
TypeScript (97.7%)
HTML (2.3%)
Total Downloads
5,439
Last Day
7
Last Week
7
Last Month
18
Last Year
669
MIT License
200 Stars
1,736 Commits
34 Forks
8 Watchers
17 Branches
25 Contributors
Updated on Jun 30, 2025
Minified
Minified + Gzipped
Latest Version
0.1.4
Package Id
@xmcl/java-installer@0.1.4
Unpacked Size
30.19 kB
Size
5.65 kB
File Count
11
NPM Version
lerna/3.20.2/node@v10.19.0+x64 (linux)
Node Version
10.19.0
Cumulative downloads
Total Downloads
Last Day
0%
7
Compared to previous day
Last Week
250%
7
Compared to previous week
Last Month
-67.3%
18
Compared to previous month
Last Year
-6%
669
Compared to previous year
2
Provide functions to install jaav from Minecraft source.
Scan java installation path from the disk. (Require a lzma unpacker, like 7zip-bin or lzma-native)
1 import { JavaInstaller } from "@xmcl/java-installer"; 2 3 // this require a unpackLZMA util to work 4 // you can use `7zip-bin` 5 // or `lzma-native` for this 6 const unpackLZMA: (src: string, dest: string) => Promise<void>; 7 8 await JavaInstaller.installJreFromMojang({ 9 destination: "your/java/home", 10 unpackLZMA, 11 });
This will scan the paths in arguments and some common places to install java in current os.
So passing an empty array is OK.
1 import { JavaInstaller, JavaInfo } from "@xmcl/java-installer"; 2 3 const validJavaList: JavaInfo[] = await JavaInstaller.scanLocalJava([ 4 "my/java/home" 5 ]); 6 7 // it can parse java major version, like `8` or `10` 8 const javaMajorVersion: number = validJavaList[0].majorVersion; 9 10 // also the java version 11 const javaVersion: string = validJavaList[0].version; 12 13 // also contain the path 14 const jPath: string = validJavaList[0].path;
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
21 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
binaries present in source code
Details
Reason
Found 1/29 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
12 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More