Gathering detailed insights and metrics for it-length-prefixed-stream
Gathering detailed insights and metrics for it-length-prefixed-stream
Gathering detailed insights and metrics for it-length-prefixed-stream
Gathering detailed insights and metrics for it-length-prefixed-stream
A collection of utilities for making working with iterables more bearable
npm install it-length-prefixed-stream
Typescript
Module System
Node Version
NPM Version
it-queue-1.1.0
Updated on Jun 01, 2025
it-rpc-1.2.0
Updated on Jun 01, 2025
it-queue-1.0.0
Updated on Jun 01, 2025
it-parallel-3.0.13
Updated on Jun 01, 2025
it-protobuf-stream-2.0.3
Updated on Jun 01, 2025
it-cbor-stream-2.0.3
Updated on Jun 01, 2025
TypeScript (99.47%)
JavaScript (0.53%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
278 Stars
737 Commits
18 Forks
5 Watchers
4 Branches
8 Contributors
Updated on Jun 26, 2025
Latest Version
2.0.3
Package Id
it-length-prefixed-stream@2.0.3
Unpacked Size
92.96 kB
Size
22.75 kB
File Count
14
NPM Version
10.9.2
Node Version
22.15.0
Published on
Jun 01, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
Read and write length-prefixed byte arrays over a duplex stream
This module makes it easy to send and receive length-prefixed byte arrays over streams.
1import { lpStream } from 'it-length-prefixed-stream' 2 3const stream = lpStream(duplex) 4 5// read the next length-prefixed chunk 6const bytes = await stream.read() 7 8// write a length-prefixed chunk 9await stream.write(Uint8Array.from([0, 1, 2, 3, 4])) 10 11// write several chunks, all individually length-prefixed 12await stream.writeV([ 13 Uint8Array.from([0, 1, 2, 3, 4]), 14 Uint8Array.from([5, 6, 7, 8, 9]) 15])
1$ npm i it-length-prefixed-stream
<script>
tagLoading this module through a script tag will make its exports available as ItLengthPrefixedStream
in the global namespace.
1<script src="https://unpkg.com/it-length-prefixed-stream/dist/index.min.js"></script>
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/30 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
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-14
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