https://github.com/qubitproducts/really-unique-id
Produces random ID's on browsers using plugins and cookies for more randomness
https://github.com/qubitproducts/really-unique-id
ceh cmh implement
Last synced: about 1 year ago
JSON representation
Produces random ID's on browsers using plugins and cookies for more randomness
- Host: GitHub
- URL: https://github.com/qubitproducts/really-unique-id
- Owner: QubitProducts
- Created: 2015-03-25T15:38:47.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2022-01-24T16:27:17.000Z (over 4 years ago)
- Last Synced: 2025-03-01T16:49:55.175Z (over 1 year ago)
- Topics: ceh, cmh, implement
- Language: JavaScript
- Size: 152 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Really Unique ID
----------------
[](https://github.com/feross/standard)
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
```javascript
var uniqueId = require('really-unique-id')
uniqueId()
// 658gziv02eg-0i7ow06n0-1idzrcv
```