{"id":17644986,"url":"https://github.com/actuallyconnor/uuid","last_synced_at":"2025-10-13T10:18:18.552Z","repository":{"id":42026106,"uuid":"461648241","full_name":"ActuallyConnor/uuid","owner":"ActuallyConnor","description":"A JavaScript library that provides a 'ramsey/uuid'-like interface for the uuid package","archived":false,"fork":false,"pushed_at":"2022-11-04T22:08:12.000Z","size":1275,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T09:28:34.809Z","etag":null,"topics":[],"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/ActuallyConnor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2022-02-20T23:51:19.000Z","updated_at":"2022-03-01T15:07:37.000Z","dependencies_parsed_at":"2023-01-21T22:17:34.585Z","dependency_job_id":null,"html_url":"https://github.com/ActuallyConnor/uuid","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/ActuallyConnor/uuid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActuallyConnor%2Fuuid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActuallyConnor%2Fuuid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActuallyConnor%2Fuuid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActuallyConnor%2Fuuid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ActuallyConnor","download_url":"https://codeload.github.com/ActuallyConnor/uuid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActuallyConnor%2Fuuid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014681,"owners_count":26085554,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"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":[],"created_at":"2024-10-23T10:44:13.638Z","updated_at":"2025-10-13T10:18:18.503Z","avatar_url":"https://github.com/ActuallyConnor.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e@actually_connor/uuid\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eA JavaScript library that provides a 'ramsey/uuid'-like interface for the uuid package.\u003c/strong\u003e\n\u003c/p\u003e\n\n@actually_connor/uuid is a JavaScript library for generating and working with universally unique\nidentifiers (UUIDs). It provides a [ramsey/uuid][ramseyuuid]-like interface to the [uuid][] package that\n\nThis project adheres to a [code of conduct](CODE_OF_CONDUCT.md).\nBy participating in this project and its community, you are expected to\nuphold this code.\n\n## Quickstart\n\n1. Install\n```bash\nnpm i --save @actually_connor/uuid\n```\n\n2. Generate a UUID (ES6 module syntax)\n```javascript\nimport { Uuid } from '@actually_connor/uuid';\nconst uuid = Uuid.uuid4();\n```\n\n... or using CommonJS syntax:\n```javascript\nconst { Uuid } = require('@actually_connor/uuid');\nconst uuid = Uuid.uuid4();\n```\n\n## Documentation\n\n[@actually_connor/uuid docs](https://uuid.connorsmyth.com/Uuid.html)\n\n## Use in Database - MySQL\n\nThe recommended use for saving UUID values in the database would be to create a `BINARY(16)` column in the database.\nWhen persisting the UUIDs you can `UNHEX` the hexadecimal representation of the UUID.\n\n### TypeORM\n```javascript\nawait this.model\n  .createQueryBuilder()\n  .insert()\n  .into(Table)\n  .values({\n    uuid: Uuid.uuid4().getBuffer(),\n  })\n  .execute();\n```\n\n```javascript\nawait this.model\n  .createQueryBuilder()\n  .where('uuid = :uuid', { uuid: uuid.getBuffer() })\n  .getOne();\n```\n\n## Contributing\n\nContributions are welcome! To contribute, please familiarize yourself with\n[CONTRIBUTING.md](CONTRIBUTING.md).\n\n## Copyright and License\n\nThe @actually_connor/uuid library is copyright © [Connor Smyth](https://connorsmyth.com) and\nlicensed for use under the MIT License (MIT). Please see [LICENSE][] for more\ninformation.\n\n[uuid]: https://www.npmjs.com/package/uuid\n[rfc4122]: http://tools.ietf.org/html/rfc4122\n[conduct]: https://github.com/ActuallyConnor/uuid/blob/main/CODE_OF_CONDUCT.md\n[ramseyuuid]: https://github.com/ramsey/uuid\n[npm]: https://www.npmjs.com/\n[contributing.md]: https://github.com/ActuallyConnor/uuid/blob/main/CONTRIBUTING.md\n[license]: https://github.com/ActuallyConnor/uuid/blob/main/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factuallyconnor%2Fuuid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factuallyconnor%2Fuuid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factuallyconnor%2Fuuid/lists"}