Socket
Socket
Sign inDemoInstall

get-uid

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    get-uid

Generate unique integer id.


Version published
Maintainers
1
Install size
2.80 kB
Created

Readme

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

Last updated on 25 Jan 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc