Skip to content

Commit

Permalink
fix: fixup README, update package-lock
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Jan 16, 2018
1 parent 09fa824 commit da9894f
Show file tree
Hide file tree
Showing 2 changed files with 1,359 additions and 12 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(); // ⇨ '88908250-fac6-11e7-a5ea-a3dad2fe7c07'
uuidv1(); // ⇨ '1bef8f50-fac7-11e7-beca-2d3a7510e91b'

```

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

```javascript
const uuidv4 = require('uuid/v4');
uuidv4(); // ⇨ 'bfa748bd-e889-447c-b7fd-f8dbd2025adf'
uuidv4(); // ⇨ 'b19e5932-58e5-4a60-8733-064e6877a7c3'

```

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); // ⇨ [ 136, 152, 191, 176, 250, 198, 17, 231, 146, 52, 163, 218, 210, 254, 124, 7 ]
uuidv1(null, arr, 16); // ⇨ [ 136, 152, 191, 176, 250, 198, 17, 231, 146, 52, 163, 218, 210, 254, 124, 7, 136, 152, 230, 192, 250, 198, 17, 231, 146, 52, 163, 218, 210, 254, 124, 7 ]
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 ]

```

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); // ⇨ [ 52, 211, 26, 219, 57, 198, 77, 41, 188, 30, 91, 80, 54, 124, 21, 181 ]
uuidv4(null, buffer, 16); // ⇨ [ 52, 211, 26, 219, 57, 198, 77, 41, 188, 30, 91, 80, 54, 124, 21, 181, 39, 203, 134, 122, 14, 113, 78, 136, 156, 17, 198, 161, 143, 138, 68, 149 ]
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 ]

```

Expand Down

0 comments on commit da9894f

Please sign in to comment.