Socket
Socket
Sign inDemoInstall

get-uid

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-uid

Generate unique integer id.


Version published
Weekly downloads
1.2K
increased by5.1%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 25 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc