Skip to content

chilts/pushid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

AppsAttic

License

ISC.

(Ends)

About

Lexicographically ordered string IDs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published