uuid
- Version 11.0.3
- Published
- 294 kB
- No dependencies
- MIT license
Install
npm i uuid
yarn add uuid
pnpm add uuid
Overview
RFC9562 UUIDs
Index
Variables
Functions
function parse
parse: (uuid: string) => Uint8Array;
function stringify
stringify: (arr: Uint8Array, offset?: number) => string;
function v1
v1: { (options?: Version1Options, buf?: undefined, offset?: number): string; (options: Version1Options, buf: Uint8Array, offset?: number): Uint8Array;};
function v1ToV6
v1ToV6: { (uuid: string): string; (uuid: Uint8Array): Uint8Array };
function v3
v3: typeof v3;
function v4
v4: { (options?: Version4Options, buf?: undefined, offset?: number): string; (options: Version4Options, buf: Uint8Array, offset?: number): Uint8Array;};
function v5
v5: typeof v5;
function v6
v6: { (options?: Version6Options, buf?: undefined, offset?: number): string; (options: Version1Options, buf: Uint8Array, offset?: number): Uint8Array;};
function v6ToV1
v6ToV1: { (uuid: string): string; (uuid: Uint8Array): Uint8Array };
function v7
v7: { (options?: Version7Options, buf?: undefined, offset?: number): string; (options: Version7Options, buf: Uint8Array, offset?: number): Uint8Array;};
function validate
validate: (uuid: unknown) => boolean;
function version
version: (uuid: string) => number;
Type Aliases
type UUIDTypes
type UUIDTypes = string | Uint8Array;
type Version1Options
type Version1Options = { node?: Uint8Array; clockseq?: number; random?: Uint8Array; rng?: () => Uint8Array; msecs?: number; nsecs?: number; _v6?: boolean;};
type Version4Options
type Version4Options = { random?: Uint8Array; rng?: () => Uint8Array;};
type Version6Options
type Version6Options = Version1Options;
type Version7Options
type Version7Options = { random?: Uint8Array; msecs?: number; seq?: number; rng?: () => Uint8Array;};
Namespaces
Package Files (16)
Dependencies (0)
No dependencies.
Dev Dependencies (22)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/uuid
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/uuid)
- HTML<a href="https://www.jsdocs.io/package/uuid"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3806 ms. - Missing or incorrect documentation? Open an issue for this package.