{"id":22466420,"url":"https://github.com/coreh/uid2","last_synced_at":"2025-04-06T01:09:33.240Z","repository":{"id":6772800,"uuid":"8019659","full_name":"coreh/uid2","owner":"coreh","description":"Generate unique ids.","archived":false,"fork":false,"pushed_at":"2021-10-11T20:20:57.000Z","size":19,"stargazers_count":43,"open_issues_count":0,"forks_count":15,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-30T00:08:09.215Z","etag":null,"topics":["uid"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coreh.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-05T00:46:19.000Z","updated_at":"2024-12-02T13:19:12.000Z","dependencies_parsed_at":"2022-09-26T16:22:13.942Z","dependency_job_id":null,"html_url":"https://github.com/coreh/uid2","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreh%2Fuid2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreh%2Fuid2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreh%2Fuid2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreh%2Fuid2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coreh","download_url":"https://codeload.github.com/coreh/uid2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419860,"owners_count":20936012,"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":["uid"],"created_at":"2024-12-06T10:12:12.534Z","updated_at":"2025-04-06T01:09:33.225Z","avatar_url":"https://github.com/coreh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uid2\n\n[![NPM version](https://badge.fury.io/js/uid2.svg)](http://badge.fury.io/js/uid2)\n\nGenerate unique ids. Pass in a `length` and it returns a `string`.\n\n\n## Installation\n\n    npm install uid2\n\n## Examples\n\nWithout a callback it is synchronous:\n\n```js\nconst uid = require('uid2');\n\nconst id = uid(10);\n// id =\u003e \"hbswt489ts\"\n```\n\nWith a callback it is asynchronous:\n\n```js\nconst uid = require('uid2');\n\nuid(10, function (err, id) {\n  if (err) throw err;\n  // id =\u003e \"hbswt489ts\"\n});\n```\n\nImported via `uid2/promises` it returns a `Promise`:\n\n```js\nconst uid = require('uid2/promises');\n\nasync function foo() {\n  const id = await uid(10);\n  // id =\u003e \"hbswt489ts\"\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoreh%2Fuid2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoreh%2Fuid2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoreh%2Fuid2/lists"}