1.4.19 • Published 3 years ago

fast-uuidv4 v1.4.19

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Fast uuid v4

Very fast UUID version 4 variant 1 as specified in RFC-4122 generator using c++ lib


Install:

You also need to install:

  • Node 10+
  • python
  • g++
  • and make

For more details see node-gyp

$ npm i fast-uuidv4
$ yarn add fast-uuidv4

usage:

const { uuidV4 } = require('fast-uuidv4');
const uuid = uuidV4()
console.log(uuid) // c6bc3d9f-3e2c-4170-99e7-b9809f229ecb

Benchmarks:

nameresult
uuidx 118,166 ops/sec ±5.24% (63 runs sampled)
crypto nodejsx 129,021 ops/sec ±0.81% (55 runs sampled)
fast-uuidv4x 175,673 ops/sec ±15.86% (29 runs sampled)

Run Benchmark:

$ git clone https://github.com/z22092/fast-uuidv4.git & cd fast-uuidv4/benchmarks
$ npm i & npm start
1.4.6

3 years ago

1.4.9

3 years ago

1.4.11

3 years ago

1.4.8

3 years ago

1.4.10

3 years ago

1.4.7

3 years ago

1.4.13

3 years ago

1.4.12

3 years ago

1.4.15

3 years ago

1.4.14

3 years ago

1.4.17

3 years ago

1.4.16

3 years ago

1.4.19

3 years ago

1.4.18

3 years ago

1.4.2

3 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.1.0

4 years ago