{"id":20377771,"url":"https://github.com/rolandjitsu/uid","last_synced_at":"2026-05-01T02:34:19.627Z","repository":{"id":95766479,"uuid":"146600648","full_name":"rolandjitsu/uid","owner":"rolandjitsu","description":"Random UIDs for the web","archived":false,"fork":false,"pushed_at":"2020-09-06T04:48:00.000Z","size":123,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-30T07:59:12.417Z","etag":null,"topics":["browser","javascript","typescript","uid"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rolandjitsu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-08-29T13:02:33.000Z","updated_at":"2020-09-06T04:46:54.000Z","dependencies_parsed_at":"2023-03-13T16:47:00.623Z","dependency_job_id":null,"html_url":"https://github.com/rolandjitsu/uid","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/rolandjitsu/uid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandjitsu%2Fuid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandjitsu%2Fuid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandjitsu%2Fuid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandjitsu%2Fuid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rolandjitsu","download_url":"https://codeload.github.com/rolandjitsu/uid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandjitsu%2Fuid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32483406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["browser","javascript","typescript","uid"],"created_at":"2024-11-15T01:46:26.310Z","updated_at":"2026-05-01T02:34:19.621Z","avatar_url":"https://github.com/rolandjitsu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UID Generator\n\n\u003e A small package for generating cryptographically secure UIDs in the browser, safe for both cookie and URL usage.\n\n[![npm](https://img.shields.io/npm/v/crypto-uid.svg?style=flat-square)](https://www.npmjs.com/package/crypto-uid)\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/rolandjitsu/uid/Test?label=tests\u0026style=flat-square)](https://github.com/rolandjitsu/uid/actions?query=workflow%3ATest)\n[![Coveralls github branch](https://img.shields.io/coveralls/github/rolandjitsu/uid/master?style=flat-square)](https://coveralls.io/github/rolandjitsu/uid?branch=master)\n\nThis package is a mirror of [uid-safe](https://github.com/crypto-utils/uid-safe), but meant to be used in a browser env.\nAdditionally, it comes bundled with [TypeScript](https://www.typescriptlang.org) typings.\n\n\n# Table of Contents\n\n* [Installation](#installation)\n* [Usage](#usage)\n* [Browser Support](#browser-support)\n* [Contribute](#contribute)\n\n\n### Installation\n----------------\nYou can install this package from [NPM](https://www.npmjs.com):\n```bash\nnpm add crypto-uid\n```\n\nOr with [Yarn](https://yarnpkg.com/en):\n```bash\nyarn add crypto-uid\n```\n\n#### CDN\nFor CDN, you can use [unpkg](https://unpkg.com):\n\n[https://unpkg.com/crypto-uid/dist/bundles/crypto-uid.umd.min.js](https://unpkg.com/crypto-uid/dist/bundles/crypto-uid.umd.min.js)\n\nThe global namespace for crypto-uid is `cryptoUid`:\n```js\nconst id = cryptoUid(6);\n```\n\n\n### Usage\n---------\n\n#### ES6\nGenerate a random UID:\n```ts\nimport uid from 'crypto-uid';\nconst id = uid(6);\n```\n\n#### CommonJS\nGenerate a random UID:\n```ts\nconst uid = require('crypto-uid');\nconst id = uid(6);\n```\n\n\n### Browser Support\n-------------------\nYou can expect this lib to run wherever [Web Crypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API) is supported.\n\n\n### Contribute\n--------------\nIf you wish to contribute, please use the following guidelines:\n* Use [Conventional Commits](https://conventionalcommits.org)\n* Use `[ci skip]` in commit messages to skip a build\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolandjitsu%2Fuid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frolandjitsu%2Fuid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolandjitsu%2Fuid/lists"}