get-uid
Generate unique integer id.
Last updated 11 years ago by dfcreative .
Unlicensed · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install get-uid 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (11 years ago)

2 Versions

  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |