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

Package detail

serialize-structured-data

xyzingh3MIT0.0.1TypeScript support: included

Serialize and Deserialize structured data, following HTML 5 standard, in a compact and fast way, allowing binary data and serialization to binary.

readme

Serialize Structured Data

Serialize and Deserialize structured data, following HTML 5 standard, in a compact and fast way, allowing binary data and serialization to binary.

GitHub license state npm

Primitive types
Boolean objects
String objects
Date
RegExp
Blob
File
FileList          serialize
ArrayBuffer      ----------→ string or binary(Buffer)
ArrayBufferView                     |
ImageBitmap                         | deserialize
ImageData                           ↓
Array                          original data
Object
Map
Set

HTML 5 Living Standard:

https://html.spec.whatwg.org/multipage/structured-data.html

MDN: The structured clone algorithm

https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm