Installations
npm install @xmcl/bytebuffer
Developer Guide
Typescript
Yes
Module System
CommonJS, ESM
Min. Node Version
>=16
Node Version
16.20.0
NPM Version
8.19.4
Score
76.5
Supply Chain
82.8
Quality
75.3
Maintenance
100
Vulnerability
87.6
License
Releases
Contributors
Languages
TypeScript (97.69%)
HTML (2.31%)
Developer
Download Statistics
Total Downloads
2,216
Last Day
1
Last Week
15
Last Month
48
Last Year
1,040
GitHub Statistics
183 Stars
1,698 Commits
29 Forks
8 Watching
18 Branches
24 Contributors
Bundle Size
18.73 kB
Minified
2.85 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.1.1
Package Id
@xmcl/bytebuffer@0.1.1
Unpacked Size
458.06 kB
Size
59.12 kB
File Count
35
NPM Version
8.19.4
Node Version
16.20.0
Publised On
24 Apr 2023
Total Downloads
Cumulative downloads
Total Downloads
2,216
Last day
0%
1
Compared to previous day
Last week
114.3%
15
Compared to previous week
Last month
-60%
48
Compared to previous month
Last year
-11.6%
1,040
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
7
ByteBuffer Module
Provide some functions to query Minecraft server status. Port from bytebuffer.js.
Usage
Should similar to the bytebuffer in java.
You can also reference the bytebuffer.js.
There are sevearl notable differences:
- Remove string methods as nodejs have better string encoding/decoding support.
- This module only release one version using
DataView
. Should compatible for both browser and nodejs. - This module use
BigInt
to represent thelong
type. - Split non-common methods support into separate files. (Hope to reduce the build size)
- Support esm (mjs)
Common usage:
1import { ByteBuffer } from '@xmcl/bytebuffer' 2const bb = ByteBuffer.allocate(10) 3// similar to java's ByteBuffer
Using extra methods:
1import { ByteBuffer } from '@xmcl/bytebuffer' 2import '@xmcl/bytebuffer/varint64' // importing this will inject the varint64 methods to ByteBuffer 3 4const bb = ByteBuffer.allocate(10) 5bb.writeVarint64(BigInt(1234567890)) // now this is avaiable!
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
packaging workflow detected
Details
- Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:9
Reason
3 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6
Reason
Found 1/9 approved changesets -- score normalized to 1
Reason
binaries present in source code
Details
- Warn: binary detected: mock/mods/dummy-mod.jar:1
- Warn: binary detected: mock/mods/fabric-sample-2.jar:1
- Warn: binary detected: mock/mods/fabric-sample.jar:1
- Warn: binary detected: mock/mods/sample-ccc-mod.jar:1
- Warn: binary detected: mock/mods/sample-mod-1.13-no-deps.jar:1
- Warn: binary detected: mock/mods/sample-mod-1.13.jar:1
- Warn: binary detected: mock/mods/sample-mod.jar:1
- Warn: binary detected: mock/mods/sample-nei-mod.jar:1
- Warn: binary detected: mock/mods/tweak-class.jar:1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/build.yml:1
- Warn: no topLevel permission defined: .github/workflows/github-pages.yml:1
- Warn: no topLevel permission defined: .github/workflows/release.yml:1
- Warn: no topLevel permission defined: .github/workflows/validation.yml:1
- Info: no jobLevel write permissions found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/build.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/build.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/build.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/build.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/build.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/build.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/github-pages.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/github-pages.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/github-pages.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/github-pages.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/github-pages.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/github-pages.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/github-pages.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/github-pages.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/github-pages.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/github-pages.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/release.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/release.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/release.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/release.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validation.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/validation.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/validation.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/validation.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validation.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/validation.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validation.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/validation.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validation.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/Voxelum/minecraft-launcher-core-node/validation.yml/master?enable=pin
- Info: 0 out of 12 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 8 third-party GitHubAction dependencies pinned
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 23 are checked with a SAST tool
Score
4.1
/10
Last Scanned on 2025-02-03
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