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
Copy file name to clipboardExpand all lines: README.md
+38-13Lines changed: 38 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,37 +83,62 @@ Convert UUID string to array of bytes
83
83
|_returns_|`Uint8Array[16]`|
84
84
|_throws_|`TypeError` if `str` is not a valid UUID |
85
85
86
+
Note: Ordering of values in the byte arrays used by `parse()` and `stringify()` follows the left ↠ right order of hex-pairs in UUID strings. As shown in the example below.
|`arr`|`Array`-like collection of 16 values (starting from `offset`) between 0-255. |
113
+
|[`offset` = 0]|`Number` Starting index in the Array |
114
+
|_returns_|`String`|
115
+
|_throws_|`TypeError` if a valid UUID string cannot be generated |
116
+
117
+
Note: Ordering of values in the byte arrays used by `parse()` and `stringify()` follows the left ↠ right order of hex-pairs in UUID strings. As shown in the example below.
Copy file name to clipboardExpand all lines: README_js.md
+33-8Lines changed: 33 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,31 +95,56 @@ Convert UUID string to array of bytes
95
95
|_returns_|`Uint8Array[16]`|
96
96
|_throws_|`TypeError` if `str` is not a valid UUID |
97
97
98
+
Note: Ordering of values in the byte arrays used by `parse()` and `stringify()` follows the left ↠ right order of hex-pairs in UUID strings. As shown in the example below.
99
+
98
100
Example:
99
101
100
102
```javascript --run
101
103
import { parseasuuidParse } from'uuid';
102
104
103
-
uuidParse('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'); // RESULT
|`arr`|`Array`-like collection of 16 values (starting from `offset`) between 0-255. |
119
+
|[`offset` = 0]|`Number` Starting index in the Array |
120
+
|_returns_|`String`|
121
+
|_throws_|`TypeError` if a valid UUID string cannot be generated |
122
+
123
+
Note: Ordering of values in the byte arrays used by `parse()` and `stringify()` follows the left ↠ right order of hex-pairs in UUID strings. As shown in the example below.
0 commit comments