@endo/netstring
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

netstring

This is an implementation of asynchronous streams framed as Netstrings. A netstring is a binary protocol for length-prefixed frames, using decimal strings as variable width integers. For example, the frame 5:hello, corresponds to the message hello, where 5 is the length of hello in bytes.

This implementation relies particularly on the pure JavaScript notion of a stream, using async iterators of Uint8Arrays. By convention, these may be ranges of a ring buffer, so a stream owns a byte range it receives from next until the next time it calls next.

Netstrings
D. J. Bernstein, djb@pobox.com
1997-02-01

Readme

Keywords

none

Package Sidebar

Install

npm i @endo/netstring

Weekly Downloads

1,901

Version

1.0.6

License

Apache-2.0

Unpacked Size

27.3 kB

Total Files

10

Last publish

Collaborators

  • mhofman
  • kriskowal
  • michaelfig
  • erights
  • warner