Skip to content

Commit

Permalink
feat: Add v3 Support (#217)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
broofa committed Jan 16, 2018
1 parent 385d28e commit d94f726
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -28,7 +28,7 @@ Version 1 (timestamp):

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

```

Expand Down Expand Up @@ -56,7 +56,7 @@ Version 4 (random):

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

```

Expand Down Expand Up @@ -167,8 +167,8 @@ Example: In-place generation of two binary IDs
```javascript
// Generate two ids in an array
const arr = new Array();
uuidv1(null, arr, 0); // ⇨ [ 27, 247, 204, 176, 250, 199, 17, 231, 146, 52, 45, 58, 117, 16, 233, 27 ]
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 ]
uuidv1(null, arr, 0); // ⇨ [ 28, 97, 14, 112, 250, 202, 17, 231, 146, 52, 157, 131, 109, 69, 255, 65 ]
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 ]

```

Expand Down Expand Up @@ -237,8 +237,8 @@ Example: Generate two IDs in a single buffer

```javascript
const buffer = new Array();
uuidv4(null, buffer, 0); // ⇨ [ 65, 113, 70, 246, 15, 61, 73, 68, 172, 237, 152, 85, 103, 108, 65, 139 ]
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 ]
uuidv4(null, buffer, 0); // ⇨ [ 253, 175, 55, 222, 195, 132, 75, 162, 156, 105, 127, 104, 58, 195, 192, 66 ]
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 ]

```

Expand Down

0 comments on commit d94f726

Please sign in to comment.