Skip to content

dy/get-uid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-uid Build Status Code Climate

Simple random id generator.

$ npm install get-uid

	var getUid = require('get-uid');

	getUid(); //1178851014
	getUid(); //811233864
	...

Yet another one uid generator? There are already some:

  • gen-uid
  • unique
  • uid
  • uid2
  • uid-util
  • micro-uid
  • component-uid
  • j-uid
  • unique-id
  • uniqid
  • short-uid
  • puid
  • amp-unique-id
  • genuid
  • simple-uid
  • random-id
  • smart-id
  • uuid-pure
  • simple-random-id
  • nid

This one is just shorter and simpler, almost like id++, but with no bad side-effects. The technique is used innerly by Financial Times’ WeakSet, Web-components’ WeakMap and so on.

NPM

About

Generate unique numeric id.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published