requestid
v0.1.0
Published
top speed to generate a unique ID that's never repeat
Downloads
5
Readme
top speed to generate a unique ID that's never repeat
Generate A Unique ID Like: UsH0mUQ-AKABBvCI-NEF-A
Every request will increase last fragment, others are fixed.
- first is a microtime of start
- second is the ip each 2 digit indicate a ip fragment
- third is the pid
- last is the self-increase id
Usage
requireID = require('requestid')
requireID() // UsH0mUQ-AKABBvCI-NEF-A