Skip to content
0

katanakit-js / useUuid

Function: useUuid() ​

ts
function useUuid(): string;

Defined in: src/core/services/generator.service.ts:124

Generates a RFC 4122 v4 UUID string.

Returns ​

string

A UUID string.

Example ​

ts
import { useUuid } from "katanakit-js";

const id = useUuid();
// => "3b241101-e2bb-4d7a-8615-..."

Released under the MIT License.