Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.

babiabeo/uuid-v7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uuid-v7

JSR JSR Score CI

Warning

Use @std/uuid/v7 instead.

The uuid-v7 package provides UUID v7 generator and validator based on RFC 9562.

UUID v7 features a time-ordered value field derived from the widely implemented and well-known Unix Epoch timestamp source, the number of milliseconds since midnight 1 Jan 1970 UTC, leap seconds excluded.

Important

Since version 0.4.0, the generate sub-module no longer creates monotonic UUIDs; instead, it generates standard ones.

Quick start

Install

This package is available on jsr.io.

# Deno
deno add @babia/uuid-v7

# npm
npx jsr add @babia/uuid-v7

# yarn
yarn dlx jsr add @babia/uuid-v7

# pnpm
pnpm dlx jsr add @babia/uuid-v7

# Bun
bunx jsr add @babia/uuid-v7

Example: Generate a new UUID

Standard UUID
import { generate } from "@babia/uuid-v7/generate";

generate(); // => 01912d68-01fe-7a03-a190-b5622fd831e9
Monotonically-increasing UUID
import { monotonicGen } from "@babia/uuid-v7/monotonic";

monotonicGen(); // => 01912d68-783e-7a03-8467-5661c1243ad4

Documentation

The documentation for the package can be found here:

https://jsr.io/@babia/uuid-v7/doc

License

This package is licensed for use under MIT License.


Copyright © 2025 David (babiabeo)

About

RFC 9562 UUID version 7 generator and validator

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors