{"id":16756782,"url":"https://github.com/charmander/gc-listen","last_synced_at":"2026-05-22T14:07:10.456Z","repository":{"id":57245326,"uuid":"159500193","full_name":"charmander/gc-listen","owner":"charmander","description":"Calls a function when V8 collects an object as garbage","archived":false,"fork":false,"pushed_at":"2020-04-30T10:35:57.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-07T14:39:48.600Z","etag":null,"topics":["garbage-collection","nodejs","v8"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/gc-listen","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/charmander.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-28T12:39:59.000Z","updated_at":"2020-04-30T10:35:51.000Z","dependencies_parsed_at":"2022-09-01T06:11:10.764Z","dependency_job_id":null,"html_url":"https://github.com/charmander/gc-listen","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmander%2Fgc-listen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmander%2Fgc-listen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmander%2Fgc-listen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmander%2Fgc-listen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charmander","download_url":"https://codeload.github.com/charmander/gc-listen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243837143,"owners_count":20355837,"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":["garbage-collection","nodejs","v8"],"created_at":"2024-10-13T03:42:04.612Z","updated_at":"2026-05-22T14:07:05.414Z","avatar_url":"https://github.com/charmander.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## gc-listen\n\nA way to attach a JavaScript function with `napi_add_finalizer`. For debugging.\n\n```javascript\nconst gcListen = require('gc-listen');\n\nconst obj = {};\n\nconst callback = () =\u003e {\n    // …\n};\n\ngcListen(obj, callback);\n```\n\n`callback` won’t be called as long as `obj` isn’t eligible for garbage collection. N-API even suggests it will be called *when* `obj` is collected. It will always be called asynchronously when called at all.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharmander%2Fgc-listen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharmander%2Fgc-listen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharmander%2Fgc-listen/lists"}