pushid
v1.0.0
Published
Lexicographically sorted string IDs
Downloads
521
Readme
pushid - Lexicographically ordered string IDs
Modelled after https://gist.github.com/mikelehen/3596a30bd69384624c11 from Michael Lehenbauer and an explanatory blog post is The 2^120 Ways to Ensure Unique Identifiers.
This is close to what Firebase uses in their push IDs.
Installation
pushid can be installed from npm:
npm install pushid
Synopsis
var pushid = require('pushid')
console.log(pushid())
// -> "-KQ40rgB96epAE7LZH2W"
console.log(pushid())
// -> "-KQ42XiyWauJIUSNJZeg"
Author
Andrew Chilton:
- Website : https://chilts.org/
- Email : [email protected]
- Twitter : @andychilton
- GitHub : chilts
AppsAttic
- Website : https://appsattic.com/
- Email : [email protected]
- Twitter : @AppsAtticLtd
- GitHub : appsattic
License
ISC.
(Ends)