{"id":13479514,"url":"https://github.com/vercel/uid-promise","last_synced_at":"2025-05-16T03:07:30.914Z","repository":{"id":37493579,"uuid":"53364669","full_name":"vercel/uid-promise","owner":"vercel","description":"Creates a cryptographically strong UID","archived":false,"fork":false,"pushed_at":"2024-06-08T20:32:44.000Z","size":41,"stargazers_count":256,"open_issues_count":0,"forks_count":13,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-12T01:46:58.517Z","etag":null,"topics":["guid","uid","uuid"],"latest_commit_sha":null,"homepage":"https://npmjs.com/uid-promise","language":"TypeScript","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/vercel.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-07T22:45:16.000Z","updated_at":"2025-02-28T03:02:28.000Z","dependencies_parsed_at":"2024-01-10T20:11:10.032Z","dependency_job_id":"a765da4a-c6c0-42d9-9959-e3e4ed1ce35b","html_url":"https://github.com/vercel/uid-promise","commit_stats":{"total_commits":48,"total_committers":13,"mean_commits":"3.6923076923076925","dds":0.6458333333333333,"last_synced_commit":"03abfb35e71421e16d76636d6381a69660c80d29"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Fuid-promise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Fuid-promise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Fuid-promise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Fuid-promise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vercel","download_url":"https://codeload.github.com/vercel/uid-promise/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459088,"owners_count":22074605,"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":["guid","uid","uuid"],"created_at":"2024-07-31T16:02:18.067Z","updated_at":"2025-05-16T03:07:25.899Z","avatar_url":"https://github.com/vercel.png","language":"TypeScript","readme":"# uid-promise\n\nCreates a cryptographically secure UID with a 62 character range that can be safely used in URLs.\n\n## Usage\n\nInstall the package:\n\n```js\nnpm i uid-promise\n```\n\nThen import it:\n\n```js\nimport { uid } = from 'uid-promise';\n```\n\nFinally, call it:\n\n```js\nawait uid(20);\n```\n\n## API\n\n**`uid(Number len) =\u003e Promise`**\n\n- Return a `Promise` that resolves with a string of random characters\n  of length `len`\n- `len` must always be provided, else the promise is rejected\n- Under the hood, `crypto.randomBytes` is used\n- Character set: `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`\n\n## Authors\n\n- Guillermo Rauch ([@rauchg](https://x.com/rauchg)) - [Vercel](https://vercel.com)\n- Leo Lamprecht ([@notquiteleo](https://x.com/leo)) - [Vercel](https://vercel.com)\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvercel%2Fuid-promise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvercel%2Fuid-promise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvercel%2Fuid-promise/lists"}