Skip to content

@nhtio/web-serialization ​

Provides a mechanism to serialize and deserialize data within a web context such as a browser window, web worker or service worker.

Variables ​

VariableDescription
versionThe current version of the package.

Functions ​

FunctionDescription
canSerializeChecks if a value is serializable
confirmConfirms that a value is serializable, returning the typecasted value if it is.
deserializeDeserializes the given Uint8Array into the original data type.
serializeSerializes the given data into a Uint8Array.

References ​

Serializable ​

Re-exports Serializable


SerializablePrimitive ​

Re-exports SerializablePrimitive


SerializableTypedArray ​

Re-exports SerializableTypedArray