# get-uid

> Generate unique integer id.

Latest version **1.0.1** (published 2015-01-25) · Unlicensed license · 0 weekly downloads

## Install

```sh
npm install get-uid
pnpm add get-uid
yarn add get-uid
bun add get-uid
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-01-25 |
| First published | 2015-01-25 |
| Weekly downloads | 0 |
| License | Unlicensed |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Deema Ywanov |
| Maintainers | dfcreative |
| Keywords | unique, get-uid, uid, unique-id, uniq-id, id, gen-uid, short-uid |

## Links

- npm: https://www.npmjs.com/package/get-uid
- Repository: https://github.com/dfcreative/get-uid
- Issues: https://github.com/dfcreative/get-uid/issues
- npm.io page: https://npm.io/package/get-uid

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-01-25
- 1.0.0 — 2015-01-25

## README

# get-uid [![Build Status](https://travis-ci.org/dfcreative/get-uid.svg?branch=master)](https://travis-ci.org/dfcreative/get-uid) [![Code Climate](https://codeclimate.com/github/dfcreative/get-uid/badges/gpa.svg)](https://codeclimate.com/github/dfcreative/get-uid)

Simple random id generator.

`$ npm install get-uid`

```js
	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](https://github.com/Financial-Times/polyfill-service/blob/master/polyfills/WeakSet/polyfill.js), [Web-components’ WeakMap](https://github.com/webcomponents/webcomponentsjs/blob/master/src/WeakMap/WeakMap.js) and so on.


[![NPM](https://nodei.co/npm/get-uid.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/get-uid/)

<a href="UNLICENSE"><img src="http://upload.wikimedia.org/wikipedia/commons/6/62/PD-icon.svg" width="20"/></a>

---
_Source: https://npm.io/package/get-uid · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
