{"id":23138357,"url":"https://github.com/deployable/node-deployable-mixin-class_uid","last_synced_at":"2026-05-03T02:35:44.079Z","repository":{"id":149113437,"uuid":"77883346","full_name":"deployable/node-deployable-mixin-class_uid","owner":"deployable","description":"Node Class UID Mixin","archived":false,"fork":false,"pushed_at":"2017-01-03T12:31:00.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T16:44:13.211Z","etag":null,"topics":["deployable","mixins","nodejs","npm-module","uuid"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/deployable.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}},"created_at":"2017-01-03T04:14:23.000Z","updated_at":"2017-01-03T04:14:41.000Z","dependencies_parsed_at":"2023-04-26T01:02:11.995Z","dependency_job_id":null,"html_url":"https://github.com/deployable/node-deployable-mixin-class_uid","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"0fa3620612baba707e74f406f4804b9d6c2c33c4"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deployable%2Fnode-deployable-mixin-class_uid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deployable%2Fnode-deployable-mixin-class_uid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deployable%2Fnode-deployable-mixin-class_uid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deployable%2Fnode-deployable-mixin-class_uid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deployable","download_url":"https://codeload.github.com/deployable/node-deployable-mixin-class_uid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157133,"owners_count":20893210,"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":["deployable","mixins","nodejs","npm-module","uuid"],"created_at":"2024-12-17T13:10:43.247Z","updated_at":"2026-05-03T02:35:39.041Z","avatar_url":"https://github.com/deployable.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [deployable-mixin-class-uuid](https://github.com/deployable/deployable-mixin-class-uuid)\n\nNode Class UUID Mixin\n\nAttach a UUID to a class as `class_uid` and add `generateUuid()` helper functions\n\n## Install\n \n    npm install deployable-mixin-class_uid --save\n\n    yarn add deployable-mixin-class_uid\n\n## Usage\n\n```javascript\n\nconst mix = require('mixwith').mix\nconst MixinClassUid = require('deployable-mixin-class_uid')\nclass SomeMix = {}\nclass Some extends mix(SomeMix).with(MixinClassUid) {}\n\nlet obj = new Some()\nconsole.log(obj.class_uid)\nconsole.log(obj.generateUuid())\n\n```\n\n## API\n\n### `Class.generateUuid(version)`\n\nStatic method to generate a uuid. Pass a version `v1` or `v4`\n\n### `.class_uid`\n\nGet or set the uid on the class via a property\n\n### `.generateUuid(version)`\n\nInstance method to generate a uuid. Pass a version `v1` or `v4`\n\n## License\n\ndeployable-mixin-class_uid is released under the MIT license.\nCopyright 2016 Matt Hoyle \u003ccode at deployable.co\u003e\n\nhttps://github.com/deployable/deployable-mixin-class_uid\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeployable%2Fnode-deployable-mixin-class_uid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeployable%2Fnode-deployable-mixin-class_uid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeployable%2Fnode-deployable-mixin-class_uid/lists"}