Function: isDurableObjectId()
isDurableObjectId(
value):boolean
Defined in: is-durable-object-id.ts:16
Check if a string is a Cloudflare Durable Object ID.
DO IDs are exactly 64 lowercase hexadecimal characters.
Parameters
value
string
The string to check
Returns
boolean
true if the value is a valid DO ID format
Example
isDurableObjectId('8aa7a69131efa8902661702e701295f168aa5806045ec15d01a2f465bd5f3b99'); // true
isDurableObjectId('my-instance-name'); // false
isDurableObjectId('invalid-hex-GGGG'); // false