{"id":16217021,"url":"https://github.com/briansipple/ember-simple-uuid","last_synced_at":"2025-09-21T21:31:38.028Z","repository":{"id":57224332,"uuid":"52175214","full_name":"BrianSipple/ember-simple-uuid","owner":"BrianSipple","description":"Direct client-side UUID generation with node-uuid's v4 implementation","archived":false,"fork":false,"pushed_at":"2017-01-26T05:22:14.000Z","size":19,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T09:41:33.831Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ember-simple-uuid","language":"JavaScript","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/BrianSipple.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}},"created_at":"2016-02-20T20:57:28.000Z","updated_at":"2017-06-26T15:27:07.000Z","dependencies_parsed_at":"2022-09-04T07:41:23.004Z","dependency_job_id":null,"html_url":"https://github.com/BrianSipple/ember-simple-uuid","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianSipple%2Fember-simple-uuid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianSipple%2Fember-simple-uuid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianSipple%2Fember-simple-uuid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianSipple%2Fember-simple-uuid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrianSipple","download_url":"https://codeload.github.com/BrianSipple/ember-simple-uuid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233628266,"owners_count":18705035,"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":[],"created_at":"2024-10-10T11:23:57.403Z","updated_at":"2025-09-21T21:31:37.646Z","avatar_url":"https://github.com/BrianSipple.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-simple-uuid\n\n[![npm version](https://badge.fury.io/js/ember-simple-uuid.svg)](https://badge.fury.io/js/ember-simple-uuid) [![Build Status](https://travis-ci.org/BrianSipple/ember-simple-uuid.svg?branch=master)](https://travis-ci.org/BrianSipple/ember-simple-uuid) [![Ember Observer Score](http://emberobserver.com/badges/ember-simple-uuid.svg)](http://emberobserver.com/addons/ember-simple-uuid)\n\n\n_Direct client-side UUID generation that exposes [node-uuid](https://github.com/broofa/node-uuid)'s `uuid.v4` implementation as an importable module_.\n\nOriginal credit for this addon's approach is due to [`ember-cli-uuid`](https://github.com/thaume/ember-cli-uuid).  \n`ember-simple-uuid` -- this addon -- wraps the same function as `ember-cli-uuid` (`uuid.v4`), but without any dependency on `ember-data` and without an initializer that decorates `DS.Adapter`. Those wanting such extra behavior may well want to give `ember-cli-uuid` a look.\n\n`ember-simple-uuid` also [gathers any arguments passed to its function](/addon/utils/uuid.js) and spreads them to fit the `uuid.v4` function signature. This enables the `uuid.v4` configuration options documented [here](https://github.com/broofa/node-uuid#uuidv4options--buffer--offset).\n\n\n## Usage\n\n### Straight up:\n```\nimport uuid from 'ember-simple-uuid';\n\nconst babyName = uuid();\n\n// babyName \u003e\u003e 'ad84fb10-19c4-01e1-2b0d-7b25c4ea062'\n\n```\n\n### With arguments -- for example, generating two IDs in a single buffer:\n```\nimport uuid from 'ember-simple-uuid';\n\nconst myDigits = new Array(32);\n\nuuid(null, myDigits, 0);\nuuid(null, myDigits, 16);\n\n```\n\n## Building Locally\n\n### Installation\n\n* `git clone` this repository\n* `npm install`\n* `bower install`\n\n### Running\n\n* `ember server`\n* Visit your app at http://localhost:4200.\n\n### Running Tests\n\n* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions)\n* `ember test`\n* `ember test --server`\n\n### Building\n\n* `ember build`\n\nFor more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbriansipple%2Fember-simple-uuid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbriansipple%2Fember-simple-uuid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbriansipple%2Fember-simple-uuid/lists"}