Skip to content

ericdum/node-request-id

Repository files navigation

top speed to generate a unique ID that's never repeat

https://img.shields.io/travis/ericdum/node-request-id.svg Coverage Status npm npm

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

About

top speed to generate a unique ID that's never repeat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published