A fast and complete ByteBuffer implementation using either ArrayBuffers in the browser or Buffers under node.js.
Installations
npm install bytebuffer
Developer Guide
Typescript
No
Module System
CommonJS, UMD
Min. Node Version
>=0.8
Node Version
0.12.7
NPM Version
2.11.3
Score
99.6
Supply Chain
89.8
Quality
76.1
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
Download Statistics
Total Downloads
210,654,180
Last Day
39,894
Last Week
194,939
Last Month
940,147
Last Year
14,409,941
GitHub Statistics
722 Stars
274 Commits
155 Forks
34 Watching
4 Branches
11 Contributors
Bundle Size
49.53 kB
Minified
10.65 kB
Minified + Gzipped
Package Meta Information
Latest Version
5.0.1
Package Id
bytebuffer@5.0.1
Size
179.76 kB
NPM Version
2.11.3
Node Version
0.12.7
Total Downloads
Cumulative downloads
Total Downloads
210,654,180
Last day
-4.3%
39,894
Compared to previous day
Last week
-17.7%
194,939
Compared to previous week
Last month
-8.8%
940,147
Compared to previous month
Last year
-40.7%
14,409,941
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
6
A fast and complete ByteBuffer implementation using either ArrayBuffers in the browser or node Buffers under node.js, generated from a single source tree through MetaScript.
Features
- Three API-compatible versions:
- bytebuffer  Backing buffer: ArrayBuffer, Accessor: Uint8Array
- bytebuffer-dataview  Backing buffer: ArrayBuffer, Accessor: DataView
- bytebuffer-node  Backing buffer / Accessor: node Buffer
- 8, 16, 32 and 64 bit (through long.js) signed and unsigned integers
- 32 and 64 bit floats
- Varints as used in protobuf (32 and 64 bit, zig-zag)
- Base64, utf8, binary, hex and debug encodings
- Handy string and debugging utilities
- Big and little endianness
- Relative and absolute zero-copy operations wherever possible
- Transparent resizing when using unknown-length data
- Chaining of all operations that do not return a specific value
- Slicing, appending, prepending, reversing, flip, mark, reset, etc.
Usage
The library is compatible with CommonJS and AMD loaders and is exposed globally as dcodeIO.ByteBuffer
if neither is
available.
1var ByteBuffer = require("bytebuffer"); 2 3var bb = new ByteBuffer() 4 .writeIString("Hello world!") 5 .flip(); 6console.log(bb.readIString()+" from bytebuffer.js");
In the browser, 64 bit integer support is optional and present only if Long.js has been loaded prior to bytebuffer.js.
API
Downloads
Support for IE<10, FF<15, Chrome<9 etc.
- Use bytebuffer-dataview with a polyfill (see)
Contributors
Dretch (IE8 compatibility)
License
License: Apache License, Version 2.0 - Logo derived from W3C HTML5 Logos (CC A 3.0)
No vulnerabilities found.
Reason
no vulnerabilities detected
Reason
tokens are read-only in GitHub workflows
Reason
all dependencies are pinned
Details
- Info: GitHub-owned GitHubActions are pinned
- Info: Third-party GitHubActions are pinned
- Info: Dockerfile dependencies are pinned
- Info: no insecure (not pinned by hash) dependency downloads found in Dockerfiles
- Info: no insecure (not pinned by hash) dependency downloads found in shell scripts
Reason
license file detected
Details
- Info: : LICENSE:1
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 commit(s) out of 30 and 0 issue activity out of 30 found in the last 90 days -- score normalized to 0
Reason
GitHub code reviews found for 2 commits out of the last 30 -- score normalized to 0
Details
- Warn: no reviews found for commit: fbefed78513615946731c059e2597732adde0d97
- Warn: no reviews found for commit: 1cc9bd36b41a734749913c7ecd41b02d0d4a7c31
- Warn: no reviews found for commit: 9efce3947859dcf2cc176bf7d074a11a028cfd52
- Warn: no reviews found for commit: 7fc8584ee36ad8f6873afee205ad0f4032e9dcbd
- Warn: no reviews found for commit: 737513750556c6e81e9c5b182337c20d4f4f3f59
- Warn: no reviews found for commit: 09109261a6b0efa43bfaf86fd8c472bd5ce5dd8f
- Warn: no reviews found for commit: f3f310b6786e5d44686d385a2cc60c6720a1069b
- Warn: no reviews found for commit: 3f285219269cbecd4a75cb8ea40cda85fdf27d27
- Warn: no reviews found for commit: b92dcfb200d7ae8eef7f80f733aaa9a9acb558a6
- Warn: no reviews found for commit: 5716fb1c584cbe005a20b593be64940d28895fb4
- Warn: no reviews found for commit: 6384cb40b2a56187ba1477070f55aa3eb41cade3
- Warn: no reviews found for commit: cd6011c7b2d1d7a8792831918c467a3e1eb071c2
- Warn: no reviews found for commit: a7a250da00217ab867e3818b36a910928348a066
- Warn: no reviews found for commit: 8cabbfdcf8c561fe6a4d84188362e73aa739509b
- Warn: no reviews found for commit: 66ee8556133eaad07316e8d3a5d1571d1b9a2921
- Warn: no reviews found for commit: 19d4b7e5c75dff3928cd3873ab90cca831af0e81
- Warn: no reviews found for commit: 1c107321bf605cac7a869473da83100422c64246
- Warn: no reviews found for commit: ffd2d49450ba45d088e22faf769b06ccc1f09a74
- Warn: no reviews found for commit: 51464958c86d3b84bbb8909fc5c7d7cd0b5a439e
- Warn: no reviews found for commit: 5655f7c0096cff0e895fd64a2aa4957c392c136c
- Warn: no reviews found for commit: 53fcc7c60d9e7140b2852afb25cbbce069a4d88c
- Warn: no reviews found for commit: 64f0e87fb55f36c0ea4c692045e9d17a11d5dd1e
- Warn: no reviews found for commit: 95849ea268c6f908591ebde1f5e8828ca517b80b
- Warn: no reviews found for commit: d5ecf346b5a45555be5538a7d72f24fdcd2a2667
- Warn: no reviews found for commit: ddb628360f166f0f790940a941ba0b7b6f2e826e
- Warn: no reviews found for commit: 5d089a39d8e0b917eb7a0168ce85303df1417093
- Warn: no reviews found for commit: cf838b3f716505b998fe3fe09535a8224b8e1450
- Warn: no reviews found for commit: 2786a43628f37ab319662586264cd659fc299a98
Reason
no badge detected
Reason
security policy file not detected
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
- Warn: branch protection not enabled for branch 'ByteBuffer2'
Reason
no update tool detected
Details
- Warn: dependabot config file not detected in source location. We recommend setting this configuration in code so it can be easily verified by others.
- Warn: renovatebot config file not detected in source location. We recommend setting this configuration in code so it can be easily verified by others.
Reason
project is not fuzzed
Score
4.8
/10
Last Scanned on 2022-08-15
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