{"id":20582811,"url":"https://github.com/malted/unique","last_synced_at":"2026-03-09T08:01:55.545Z","repository":{"id":62422372,"uuid":"419137749","full_name":"malted/unique","owner":"malted","description":"A Typescript UUID v4 implementation","archived":false,"fork":false,"pushed_at":"2022-12-17T16:11:07.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-31T01:53:28.470Z","etag":null,"topics":["uuid","uuid-v4"],"latest_commit_sha":null,"homepage":"","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/malted.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-10-20T00:51:23.000Z","updated_at":"2021-10-23T16:37:58.000Z","dependencies_parsed_at":"2023-01-29T17:31:12.053Z","dependency_job_id":null,"html_url":"https://github.com/malted/unique","commit_stats":null,"previous_names":["malted/unique","ma1ted/unique"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/malted/unique","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malted%2Funique","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malted%2Funique/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malted%2Funique/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malted%2Funique/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malted","download_url":"https://codeload.github.com/malted/unique/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malted%2Funique/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30287446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["uuid","uuid-v4"],"created_at":"2024-11-16T06:37:11.059Z","updated_at":"2026-03-09T08:01:55.522Z","avatar_url":"https://github.com/malted.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unique\n\n## A Typescript UUID v4 implementation\n\n### Usage\n\n#### Import the module\n\n##### Deno\n```js\nimport { uuid as uuidv4 } from \"https://deno.land/x/unique/uuid.ts\"\n```\n\n#### Generate a UUID\n\n```js\nconst uuid: string = uuidv4();\nconsole.log(uuid);\n```\n\n#### Validate the generated UUID\n\n```js\nimport { v4 } from \"https://deno.land/std@0.112.0/uuid/mod.ts\";\n\nconst isValid: boolean = v4.validate(uuid);\nconsole.log(isValid);\n```\n\n### Why\n\nAs per the MDN docs, `Crypto.randomUUID()` is _available only in secure contexts\n(HTTPS), in some or all supporting browsers_.\n\n\u003c!--https://wicg.github.io/uuid/#dom-crypto-randomuuid--\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalted%2Funique","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalted%2Funique","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalted%2Funique/lists"}