Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

cbs

carlos8f2.9kMIT0.1.1

Carlos's Buffer Serializer

buffer, serialize, unserialize, length, prefix, wire, protocol

readme

CBS (Carlos's Buffer Serializer)

This is a simple module to re-use two small functions I have copied and pasted many times.

serialize(buffers)

Take an array of buffers and serialize them into a single Buffer, using 32 bit unsigned length ints.

unserialize(buf)

Take the output of serialize and return the original buffers as an Array.