shortid A short non-sequential URL-friendly unique ID generator
Introduction
https://www.npmjs.com/package/shortid
ShortId creates surprisingly short non-contiguous URL-friendly unique IDs. Very suitable for MongoDB and Redis ID, and the ID that other users may see
- By default, 7-14 URL friendly characters: AZ, az, 0-9, _-
- Support cluster (automatic), custom seed, custom letter
- Can generate any number of IDs (no duplication), even millions per day
- The application can be restarted any number of times without having to repeat the ID
- Popular alternatives to Mongo ID / Mongoose ID
- Available in Node, io.js and Web browser
ShortId does not generate a cryptographically secure ID, so please do not rely on it to generate an unguessable ID
usage
Practical application (generate unique key)