utils
The utils module gathers shared helper types for JSON parsing, hashing, and packet encoding.
Since
v0.0.0
getHash
The getHash function produces a Hash for a given string payload. Read more.
getPacketFromParts
The getPacketFromParts function encodes a destination and body into a packet string. Read more.
getPartsFromPacket
The getPartsFromPacket function splits a packet into the destination and body parts. Read more.
getUniqueId
The getUniqueId function generates a unique ID string of the requested length. Read more.
isAtom
The isAtom function is a type guard that identifies Atom values. Read more.
isTimestamp
The isTimestamp function is a type guard that identifies Timestamp values. Read more.
jsonParse
The jsonParse function parses a JSON string that may have come from jsonString. Read more.
jsonString
The jsonString function converts an unknown value to a normalized JSON string. Read more.