Skip to content

kszongic/uuid-v5-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@kszongic/uuid-v5-cli

npm version license

Generate UUID v5 (name-based SHA-1, RFC 4122) from the command line. Zero dependencies.

Install

npm i -g @kszongic/uuid-v5-cli

Usage

# Built-in namespaces
uuid-v5 --ns-dns example.com
# → cfbff0d1-9375-5685-968c-48ce8b15ae17

uuid-v5 --ns-url https://example.com/page

# Custom namespace UUID
uuid-v5 6ba7b810-9dad-11d1-80b4-00c04fd430c8 hello

# Uppercase output
uuid-v5 --ns-dns example.com -u

Built-in Namespaces

Flag Namespace
--ns-dns 6ba7b810-9dad-11d1-80b4-00c04fd430c8
--ns-url 6ba7b811-9dad-11d1-80b4-00c04fd430c8
--ns-oid 6ba7b812-9dad-11d1-80b4-00c04fd430c8
--ns-x500 6ba7b814-9dad-11d1-80b4-00c04fd430c8

Why UUID v5?

UUID v5 is deterministic — the same namespace + name always produces the same UUID. Useful for generating stable IDs from known strings without coordination.

License

MIT © 2026 kszongic

About

Generate UUID v5 (SHA-1 namespace) from the command line.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors