Skip to content

Commit a0ade26

Browse files
committed
fix: improve UUID description
- Link to uuid package at npmjs - Briefly explain supported UUID versions for generation
1 parent 575eade commit a0ade26

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/core/operations/GenerateUUID.mjs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,20 @@ class GenerateUUID extends Operation {
2020

2121
this.name = "Generate UUID";
2222
this.module = "Crypto";
23-
this.description = "Generates an RFC 9562 (formerly RFC 4122) compliant Universally Unique Identifier (UUID), also known as a Globally Unique Identifier (GUID).<br><br>A version 4 UUID relies on random numbers, in this case generated using <code>uuid</code> package";
23+
this.description =
24+
"Generates an RFC 9562 (formerly RFC 4122) compliant Universally Unique Identifier (UUID), " +
25+
"also known as a Globally Unique Identifier (GUID).<br>" +
26+
"<br>" +
27+
"We currently support generating the following UUID versions:<br>" +
28+
"<ul>" +
29+
"<li><strong>v1</strong>: Timestamp-based</li>" +
30+
"<li><strong>v3</strong>: Namespace w/ MD5</li>" +
31+
"<li><strong>v4</strong>: Random (default)</li>" +
32+
"<li><strong>v5</strong>: Namespace w/ SHA-1</li>" +
33+
"<li><strong>v6</strong>: Timestamp, reordered</li>" +
34+
"<li><strong>v7</strong>: Unix Epoch time-based</li>" +
35+
"</ul>" +
36+
"UUIDs are generated using the <a href='https://npmjs.org/uuid/'><code>uuid</code><a> package.<br>";
2437
this.infoURL = "https://wikipedia.org/wiki/Universally_unique_identifier";
2538
this.inputType = "string";
2639
this.outputType = "string";

0 commit comments

Comments
 (0)