{"id":19346397,"url":"https://github.com/canjs/can-single-reference","last_synced_at":"2025-07-05T16:35:43.195Z","repository":{"id":57193473,"uuid":"133874121","full_name":"canjs/can-single-reference","owner":"canjs","description":"Assign a value to a function that can be collected later.","archived":false,"fork":false,"pushed_at":"2019-12-02T21:57:43.000Z","size":21,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-16T14:59:33.374Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/can-single-reference","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/canjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-17T22:20:03.000Z","updated_at":"2021-06-03T06:16:45.000Z","dependencies_parsed_at":"2022-09-15T22:31:03.990Z","dependency_job_id":null,"html_url":"https://github.com/canjs/can-single-reference","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/canjs/can-single-reference","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canjs%2Fcan-single-reference","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canjs%2Fcan-single-reference/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canjs%2Fcan-single-reference/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canjs%2Fcan-single-reference/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/canjs","download_url":"https://codeload.github.com/canjs/can-single-reference/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canjs%2Fcan-single-reference/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263771633,"owners_count":23508959,"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-11-10T04:10:03.729Z","updated_at":"2025-07-05T16:35:43.152Z","avatar_url":"https://github.com/canjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# can-single-reference\n\n[![Build Status](https://travis-ci.org/canjs/can-single-reference.svg?branch=master)](https://travis-ci.org/canjs/can-single-reference)\n\nAssign a value to a function that can be collected later\n\n```js\nimport singleReference from \"can-single-reference\";\n\nvar obj = {};\nsingleReference.set(obj, 'pet', 'dog');\nsingleReference.getAndDelete(obj, 'pet') //-\u003e 'dog'\n\nobj //-\u003e {}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanjs%2Fcan-single-reference","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcanjs%2Fcan-single-reference","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanjs%2Fcan-single-reference/lists"}