{"id":13738794,"url":"https://github.com/dy/get-uid","last_synced_at":"2025-10-31T00:43:16.384Z","repository":{"id":26366918,"uuid":"29816111","full_name":"dy/get-uid","owner":"dy","description":"Generate unique numeric id.","archived":false,"fork":false,"pushed_at":"2015-01-25T14:17:31.000Z","size":120,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T00:03:53.144Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-25T14:10:47.000Z","updated_at":"2021-07-05T14:39:22.000Z","dependencies_parsed_at":"2022-08-24T16:51:47.624Z","dependency_job_id":null,"html_url":"https://github.com/dy/get-uid","commit_stats":null,"previous_names":["dfcreative/get-uid"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fget-uid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fget-uid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fget-uid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fget-uid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dy","download_url":"https://codeload.github.com/dy/get-uid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232797470,"owners_count":18577981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T04:00:16.877Z","updated_at":"2025-10-31T00:43:11.335Z","avatar_url":"https://github.com/dy.png","language":"JavaScript","funding_links":[],"categories":["Generation"],"sub_categories":[],"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)\n\nSimple random id generator.\n\n`$ npm install get-uid`\n\n```js\n\tvar getUid = require('get-uid');\n\n\tgetUid(); //1178851014\n\tgetUid(); //811233864\n\t...\n```\n\n\nYet another one uid generator? There are already some:\n\n* gen-uid\n* unique\n* uid\n* uid2\n* uid-util\n* micro-uid\n* component-uid\n* j-uid\n* unique-id\n* uniqid\n* short-uid\n* puid\n* amp-unique-id\n* genuid\n* simple-uid\n* random-id\n* smart-id\n* uuid-pure\n* simple-random-id\n* nid\n\nThis 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.\n\n\n[![NPM](https://nodei.co/npm/get-uid.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/get-uid/)\n\n\u003ca href=\"UNLICENSE\"\u003e\u003cimg src=\"http://upload.wikimedia.org/wikipedia/commons/6/62/PD-icon.svg\" width=\"20\"/\u003e\u003c/a\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fget-uid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdy%2Fget-uid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fget-uid/lists"}