really-unique-id
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

Really Unique ID

js-standard-style

Generates a unique ID in the form iiiiiiiiiii-ttttttttt-iiiiiii using a random integer, a timestamp and another random integer (shortened to 7 chars).

The timestamp and random integer are encoded in base36 to keep the ID as small as possible while still using native base conversion.

Usage

var uniqueId = require('really-unique-id')
uniqueId()
// 658gziv02eg-0i7ow06n0-1idzrcv

Readme

Keywords

none

Package Sidebar

Install

npm i really-unique-id

Weekly Downloads

14

Version

1.2.2

License

ISC

Unpacked Size

4.28 kB

Total Files

7

Last publish

Collaborators

  • qubit
  • oliverwoodings
  • sssayegh