{"id":15679397,"url":"https://github.com/luwes/memo","last_synced_at":"2025-04-14T12:31:59.808Z","repository":{"id":42942245,"uuid":"234439731","full_name":"luwes/memo","owner":"luwes","description":"Memoization with shallowly comparing object arguments","archived":false,"fork":false,"pushed_at":"2024-06-17T23:36:33.000Z","size":193,"stargazers_count":12,"open_issues_count":8,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T23:49:32.306Z","etag":null,"topics":["memoization"],"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/luwes.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":"2020-01-17T00:40:28.000Z","updated_at":"2023-08-20T11:25:24.000Z","dependencies_parsed_at":"2024-11-01T04:00:49.398Z","dependency_job_id":null,"html_url":"https://github.com/luwes/memo","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"b8f0c5dbc8a8262aaa55781183c81337a3c71942"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luwes%2Fmemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luwes%2Fmemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luwes%2Fmemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luwes%2Fmemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luwes","download_url":"https://codeload.github.com/luwes/memo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248881658,"owners_count":21176893,"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":["memoization"],"created_at":"2024-10-03T16:30:17.869Z","updated_at":"2025-04-14T12:31:59.778Z","avatar_url":"https://github.com/luwes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# memo\n\nMemoization with shallowly comparing object arguments with support for document fragments.\n\nBased on [fast-memoize.js](https://github.com/caiogondim/fast-memoize.js) by Caio Gondim.\n\n```sh\nnpm i memo\n```\n\n```js\nimport { memo } from 'memo';\n\nlet called = 0\nconst memoized = memo(\n  a =\u003e {\n    called++\n    return a\n  }\n)\nlet obj = { a: 9 }\nconsole.log(memoized(obj) === obj)\nconsole.log(memoized({ a: 9 }) === obj)\nconsole.log(called === 1)\n\nlet obj2 = { a: 7 }\nconsole.log(memoized(obj2) === obj2)\nconsole.log(called === 2)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluwes%2Fmemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluwes%2Fmemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluwes%2Fmemo/lists"}