Skip to content

Commit d94f726

Browse files
committed
feat: Add v3 Support (#217)
Note: Actual change is in dc02a76. Just making a placeholder commit here so the note gets picked up by standard-version and put in the CHANGELOG.md file.
1 parent 385d28e commit d94f726

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Version 1 (timestamp):
2828

2929
```javascript
3030
const uuidv1 = require('uuid/v1');
31-
uuidv1(); // ⇨ '1bef8f50-fac7-11e7-beca-2d3a7510e91b'
31+
uuidv1(); // ⇨ '1c572360-faca-11e7-83ee-9d836d45ff41'
3232

3333
```
3434

@@ -56,7 +56,7 @@ Version 4 (random):
5656

5757
```javascript
5858
const uuidv4 = require('uuid/v4');
59-
uuidv4(); // ⇨ 'b19e5932-58e5-4a60-8733-064e6877a7c3'
59+
uuidv4(); // ⇨ '45db52e1-f95c-4b5f-99a2-8b8d978c99b4'
6060

6161
```
6262

@@ -167,8 +167,8 @@ Example: In-place generation of two binary IDs
167167
```javascript
168168
// Generate two ids in an array
169169
const arr = new Array();
170-
uuidv1(null, arr, 0); // ⇨ [ 27, 247, 204, 176, 250, 199, 17, 231, 146, 52, 45, 58, 117, 16, 233, 27 ]
171-
uuidv1(null, arr, 16); // ⇨ [ 27, 247, 204, 176, 250, 199, 17, 231, 146, 52, 45, 58, 117, 16, 233, 27, 27, 247, 243, 192, 250, 199, 17, 231, 146, 52, 45, 58, 117, 16, 233, 27 ]
170+
uuidv1(null, arr, 0); // ⇨ [ 28, 97, 14, 112, 250, 202, 17, 231, 146, 52, 157, 131, 109, 69, 255, 65 ]
171+
uuidv1(null, arr, 16); // ⇨ [ 28, 97, 14, 112, 250, 202, 17, 231, 146, 52, 157, 131, 109, 69, 255, 65, 28, 97, 53, 128, 250, 202, 17, 231, 146, 52, 157, 131, 109, 69, 255, 65 ]
172172

173173
```
174174

@@ -237,8 +237,8 @@ Example: Generate two IDs in a single buffer
237237

238238
```javascript
239239
const buffer = new Array();
240-
uuidv4(null, buffer, 0); // ⇨ [ 65, 113, 70, 246, 15, 61, 73, 68, 172, 237, 152, 85, 103, 108, 65, 139 ]
241-
uuidv4(null, buffer, 16); // ⇨ [ 65, 113, 70, 246, 15, 61, 73, 68, 172, 237, 152, 85, 103, 108, 65, 139, 56, 161, 192, 68, 110, 68, 77, 10, 154, 191, 195, 39, 24, 175, 13, 25 ]
240+
uuidv4(null, buffer, 0); // ⇨ [ 253, 175, 55, 222, 195, 132, 75, 162, 156, 105, 127, 104, 58, 195, 192, 66 ]
241+
uuidv4(null, buffer, 16); // ⇨ [ 253, 175, 55, 222, 195, 132, 75, 162, 156, 105, 127, 104, 58, 195, 192, 66, 210, 238, 41, 99, 195, 139, 75, 146, 144, 79, 164, 48, 65, 180, 91, 48 ]
242242

243243
```
244244

0 commit comments

Comments
 (0)