You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UUID.js is a JavaScript/ECMAScript library to generate RFC 4122 compliant Universally Unique IDentifiers (UUIDs). This library supports both version 4 UUIDs (UUIDs from random numbers) and version 1 UUIDs (time-based UUIDs), and provides an object-oriented interface to print a generated or parsed UUID in a variety of forms.
34
+
UUID.js is a JavaScript/ECMAScript library to generate RFC 4122 compliant
35
+
Universally Unique IDentifiers (UUIDs). This library supports both version 4
36
+
UUIDs (UUIDs from random numbers) and version 1 UUIDs (time-based UUIDs), and
37
+
provides an object-oriented interface to print a generated or parsed UUID in a
38
+
variety of forms.
34
39
35
-
#FEATURES
40
+
## Features
36
41
37
-
* Generates version 4 UUIDs (UUIDs from random numbers) and version 1 UUIDs (time-based UUIDs)
38
-
* Provides an object-oriented interface to print various string representations of a generated or parsed UUID
39
-
* Utilizes a cryptographically secure pseudo-random number generator if available, whereas falling back to `Math.random()` otherwise
40
-
* Appends extra random bits to compensate for the lower timestamp resolution of JavaScript than that required for version 1 UUIDs
41
-
* Comes with a lot of test cases including format checks and statistical tests to maintain a high-quality code base
42
-
* Supports old browsers as well as modern browser and server environments, as kept compatible with ECMAScript 3rd edition
42
+
- Generates version 4 UUIDs (UUIDs from random numbers) and version 1 UUIDs
43
+
(time-based UUIDs)
44
+
- Provides an object-oriented interface to print various string representations
45
+
of a generated or parsed UUID
46
+
- Utilizes a cryptographically secure pseudo-random number generator if
47
+
available, whereas falling back to `Math.random()` otherwise
48
+
- Appends extra random bits to compensate for the lower timestamp resolution of
49
+
JavaScript than that required for version 1 UUIDs
50
+
- Comes with a lot of test cases including format checks and statistical tests
51
+
to maintain a high-quality code base
52
+
- Supports old browsers as well as modern browser and server environments, as
53
+
kept compatible with ECMAScript 3rd edition
43
54
44
-
#INSTALL
55
+
## Install
45
56
46
57
Download `src/uuid.js` or call `npm install uuidjs`.
47
58
@@ -57,7 +68,7 @@ Or, import `uuidjs`.
57
68
constUUID=require("uuidjs");
58
69
```
59
70
60
-
#USAGE EXAMPLES
71
+
## Usage Examples
61
72
62
73
`UUID.generate()` returns a version 4 UUID as a hexadecimal string.
<p>UUID.js is a JavaScript/ECMAScript library to generate RFC 4122 compliant Universally Unique IDentifiers (UUIDs). This library supports both version 4 UUIDs (UUIDs from random numbers) and version 1 UUIDs (time-based UUIDs), and provides an object-oriented interface to print a generated or parsed UUID in a variety of forms.</p>
67
-
<h1>FEATURES</h1>
66
+
<h2>Description</h2>
67
+
<p>UUID.js is a JavaScript/ECMAScript library to generate RFC 4122 compliant
68
+
Universally Unique IDentifiers (UUIDs). This library supports both version 4
69
+
UUIDs (UUIDs from random numbers) and version 1 UUIDs (time-based UUIDs), and
70
+
provides an object-oriented interface to print a generated or parsed UUID in a
71
+
variety of forms.</p>
72
+
<h2>Features</h2>
68
73
<ul>
69
-
<li>Generates version 4 UUIDs (UUIDs from random numbers) and version 1 UUIDs (time-based UUIDs)</li>
70
-
<li>Provides an object-oriented interface to print various string representations of a generated or parsed UUID</li>
71
-
<li>Utilizes a cryptographically secure pseudo-random number generator if available, whereas falling back to <code>Math.random()</code> otherwise</li>
72
-
<li>Appends extra random bits to compensate for the lower timestamp resolution of JavaScript than that required for version 1 UUIDs</li>
73
-
<li>Comes with a lot of test cases including format checks and statistical tests to maintain a high-quality code base</li>
74
-
<li>Supports old browsers as well as modern browser and server environments, as kept compatible with ECMAScript 3rd edition</li>
74
+
<li>Generates version 4 UUIDs (UUIDs from random numbers) and version 1 UUIDs
75
+
(time-based UUIDs)</li>
76
+
<li>Provides an object-oriented interface to print various string representations
77
+
of a generated or parsed UUID</li>
78
+
<li>Utilizes a cryptographically secure pseudo-random number generator if
79
+
available, whereas falling back to <code>Math.random()</code> otherwise</li>
80
+
<li>Appends extra random bits to compensate for the lower timestamp resolution of
81
+
JavaScript than that required for version 1 UUIDs</li>
82
+
<li>Comes with a lot of test cases including format checks and statistical tests
83
+
to maintain a high-quality code base</li>
84
+
<li>Supports old browsers as well as modern browser and server environments, as
85
+
kept compatible with ECMAScript 3rd edition</li>
75
86
</ul>
76
-
<h1>INSTALL</h1>
87
+
<h2>Install</h2>
77
88
<p>Download <code>src/uuid.js</code> or call <code>npm install uuidjs</code>.</p>
0 commit comments