New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

uuid-with-v6

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uuid-with-v6 - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

5

package.json
{
"name": "uuid-with-v6",
"version": "1.1.0",
"version": "1.1.1",
"description": "UUID Version 6",

@@ -46,2 +46,3 @@ "main": "index.js",

"eslint-plugin-import": "2.2.0",
"flake-idgen": "1.1.0",
"istanbul": "0.4.5",

@@ -52,3 +53,5 @@ "matcha": "0.7.0",

"mockery": "2.0.0",
"puid": "1.0.7",
"scuid": "1.0.1",
"shortid": "2.2.8",
"sinon": "1.17.7",

@@ -55,0 +58,0 @@ "ulid": "0.1.0",

30

README.md

@@ -81,3 +81,3 @@ uuid-with-v6 [![Build Status](https://travis-ci.org/kurttheviking/uuid-with-v6-js.svg?branch=master)](https://travis-ci.org/kurttheviking/uuid-with-v6-js) [![Coverage Status](https://coveralls.io/repos/github/kurttheviking/uuid-with-v6-js/badge.svg?branch=master)](https://coveralls.io/github/kurttheviking/uuid-with-v6-js?branch=master)

| :-------- | :--- | :---------- | :------ |
| `disableRandom` | `Boolean` | Disable the use of UUIDv4 to populate the non-timestamp portion of the identifier | 'false' |
| `disableRandom` | `Boolean` | Disable the use of UUIDv4 to populate the non-timestamp portion of the identifier | `false` |

@@ -151,24 +151,34 @@ #### Returns

By default, this module generates a UUIDv1 as well as a series of random bytes to compose a single UUIDv6. As a result, id generation is slower than some alternatives. Using the `disableRandom` option improves performance but leaks MAC information.
By default, this module generates a UUIDv1 and a series of random bytes to compose a single UUIDv6. As a result, id generation is slower than some alternatives. The `disableRandom` option improves performance but leaks MAC information.
```
uuid
generate UUIDv1 ................................ 1,903,395 op/s
generate UUIDv4 ................................ 415,695 op/s
generate UUIDv1 ................................ 1,897,428 op/s
generate UUIDv4 ................................ 420,446 op/s
uuid-with-v6
generate UUIDv6 ................................ 273,566 op/s
generate UUIDv6 without randomness ............. 819,767 op/s
generate UUIDv6 ................................ 276,106 op/s
generate UUIDv6 without randomness ............. 855,674 op/s
uniqid
generate UNIQID ................................ 2,608,630 op/s
generate UNIQID ................................ 2,635,674 op/s
flakeid
generate Flake ID .............................. 1,290,409 op/s
puid
generate PUID .................................. 1,106,059 op/s
generate PUID without NodeId ................... 403,728 op/s
scuid
generate SCUID ................................. 927,743 op/s
generate SCUID ................................. 888,604 op/s
shortid
generate ShortID ............................... 36,738 op/s
ulid
generate ULID .................................. 29,619 op/s
generate ULID .................................. 29,562 op/s
```
The above statistics represent performance on a 2nd-generation Lenovo Carbon X1 (i5 2.90GHz, 8GB DDR3) running Ubuntu 16 LTS (16.04.2). [Your mileage may vary.](https://foldoc.org/ymmv) Read more about [uniqid](https://www.npmjs.com/package/uniqid), [scuid](https://www.npmjs.com/package/scuid) (a faster version of [cuid](https://www.npmjs.com/package/cuid)), and [ulid](https://www.npmjs.com/package/ulid).
The above statistics represent performance on a 2nd-generation Lenovo Carbon X1 (i5 2.90GHz, 8GB DDR3) running Ubuntu 16 LTS (16.04.2). [Your mileage may vary.](https://foldoc.org/ymmv) Read more about [uniqid](https://www.npmjs.com/package/uniqid), [flakeid](https://www.npmjs.com/package/flake-idgen), [puid](https://www.npmjs.com/package/puid), [scuid](https://www.npmjs.com/package/scuid) (faster [cuid](https://www.npmjs.com/package/cuid)), [shortid](https://www.npmjs.com/package/shortid), and [ulid](https://www.npmjs.com/package/ulid).

@@ -175,0 +185,0 @@ ### Collision risk

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc