A library for generating short, user-friendly, random IDs.
Requires Node 7 with the
--harmony flag or greater.
npm install simple-id
const simpleId = ;;
By default, an 8-character random ID is generated using a 31-character alphabet
23456789abcdefghjkmnpqrstuvwxyz) which notably excludes the uppercase
01ilo to avoid ambiguity. This gives about 853 billion possible
permutations. A different length and/or alphabet can be passed as follows:
The implementation uses Node's cryptographically strong
function and provides uniformly distributed random IDs. It has no other