This module provides API to generate, parse and serialize UUID strings and binary sequences.
import { generate, serialize, parse } from 'core/uuid';// Generates UUID v4console.log(generate());const uuid = new Uint8Array([174, 42, 253, 26, 185, 60, 17, 234, 179, 222, 2, 66, 172, 19, 0, 4]);console.log(parse('ae2afd1a-b93c-11ea-b3de-0242ac130004')) // = uuidconsole.log(serialize(uuid)) // 'ae2afd1a-b93c-11ea-b3de-0242ac130004'
Generates a UUIDv4 buffer and returns it.
Converts the specified binary UUID to a string and returns it.
Converts the specified UUID string to a binary sequence and returns it.
Generates a UUIDv4 buffer and returns it
Converts the specified UUID string to a binary sequence and returns it
Converts the specified binary UUID to a string and returns it
core/uuid
This module provides API to generate, parse and serialize UUID strings and binary sequences.
Usage
generate
Generates a UUIDv4 buffer and returns it.
serialize
Converts the specified binary UUID to a string and returns it.
parse
Converts the specified UUID string to a binary sequence and returns it.