0.1.0 • Published 9 years ago

requestid v0.1.0

Weekly downloads
8
License
-
Repository
github
Last release
9 years ago

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