nuid
NUID - A highly performant unique identifier generator.
Last updated 5 years ago by aricart .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install nuid 
SYNC missed versions from official npm registry.

NODE NUID

license Travis branch Coveralls github branch npm npm npm JavaScript Style Guide

A highly performant unique identifier generator.

Installation

Use the npm command:

$ npm install nuid

Basic Usage


const NUID = require('nuid');
let nuid = NUID.next();


// Generate a new crypto/rand seeded prefix.
// Generally not needed, happens automatically.
NUID.reset();

Performance

NUID needs to be very fast to generate and be truly unique, all while being entropy pool friendly. NUID uses 12 bytes of crypto generated data (entropy draining), and 10 bytes of pseudo-random sequential data that increments with a pseudo-random increment.

Total length of a NUID string is 22 bytes of base 36 ascii text, so 36^22 or 17324272922341479351919144385642496 possibilities.

Supported Node Versions

Support policy for Nodejs versions follows Nodejs release support. We will support and build node-nats on even Nodejs versions that are current or in maintenance.

License

Unless otherwise noted, the NATS source files are distributed under the Apache Version 2.0 license found in the LICENSE file.

Current Tags

  • 1.1.6                                ...           latest (5 years ago)
  • 1.1.4                                ...           next (6 years ago)

12 Versions

  • 1.1.6                                ...           5 years ago
  • 1.1.4                                ...           6 years ago
  • 1.1.4-0                                ...           6 years ago
  • 1.1.2                                ...           6 years ago
  • 1.1.2-0                                ...           6 years ago
  • 1.0.2-0                                ...           6 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.0                                ...           8 years ago
  • 0.6.14                                ...           9 years ago
  • 0.6.12                                ...           9 years ago
  • 0.6.10                                ...           9 years ago
  • 0.6.8                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 8
Last Day 0
Last Week 8
Last Month 1
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |