Skip to content

treetopllc/uid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uid

Generate unique ids of any length.

Internally this implementation uses Math.random() to remain small, fast and dependency free. However, Math.random() is not actually all that random so if you need a better random number generator, I recommend uid2.

Installation

In the browser, using component:

$ component install treetopllc/uid

Using node.js:

$ npm install uid

Examples

 uid(10) => "hbswt489ts"
 uid() => "rhvtfnt" Defaults to 7

Visit https://github.com/lukeed/uid for documentation and installation instructions.

Happy coding!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 41.9%
  • JavaScript 41.8%
  • Makefile 16.3%