Generate UUID v5 (name-based SHA-1, RFC 4122) from the command line. Zero dependencies.
npm i -g @kszongic/uuid-v5-cli# 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| 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 |
UUID v5 is deterministic — the same namespace + name always produces the same UUID. Useful for generating stable IDs from known strings without coordination.
MIT © 2026 kszongic