Skip to main content

@std/uuid@0.215.0

latest
Works with
It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun
It is unknown whether this package works with Browsers
It is unknown whether this package works with Deno
It is unknown whether this package works with Node.js
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score70%
Published2 years ago (0.215.0)
interface v1.V1Options

The options used for generating a v1 UUID in generate.

Properties

An array of 6 bytes that represents a 48-bit IEEE 802 MAC address.

A 14-bit value used to avoid duplicates that could arise when the clock is set backwards in time or if the node ID changes (0 - 16383).

The number of milliseconds since the Unix epoch (January 1, 1970).

The number of nanoseconds to add to V1Options.msecs (0 - 10,000).

An array of 16 random bytes (0 - 255).

optional
rng: () => number[]

A function that returns an array of 16 random bytes (0 - 255). Alternative to V1Options.random.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/uuid

Import symbol

import { v1 } from "@std/uuid";
or

Import directly with a jsr specifier

import { v1 } from "jsr:@std/uuid";