{"id":30891255,"url":"https://github.com/r-unic/trash","last_synced_at":"2025-09-08T18:07:22.561Z","repository":{"id":300789497,"uuid":"1007179715","full_name":"R-unic/trash","owner":"R-unic","description":"Roblox cleanup module","archived":false,"fork":false,"pushed_at":"2025-07-01T13:31:53.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-06T14:49:55.549Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/R-unic.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,"zenodo":null}},"created_at":"2025-06-23T15:26:43.000Z","updated_at":"2025-07-01T13:31:57.000Z","dependencies_parsed_at":"2025-06-23T17:05:22.904Z","dependency_job_id":null,"html_url":"https://github.com/R-unic/trash","commit_stats":null,"previous_names":["r-unic/trash"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/R-unic/trash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R-unic%2Ftrash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R-unic%2Ftrash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R-unic%2Ftrash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R-unic%2Ftrash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/R-unic","download_url":"https://codeload.github.com/R-unic/trash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R-unic%2Ftrash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274226247,"owners_count":25244683,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-09-08T18:07:18.988Z","updated_at":"2025-09-08T18:07:22.553Z","avatar_url":"https://github.com/R-unic.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @rbxts/trash\n\njust another janitor clone\n\n```ts\nclass Balls {\n  public destroy(): void {\n    print(\"destroyed balls\")\n  }\n}\n\nconst part = Workspace.WaitForChild(\"Part\");\nconst balls = new Balls;\nconst trash1 = new Trash;\nconst trash = trash1.add(new Trash);\ntrash.add(part); // track items to clean\ntrash.add(balls);\ntrash.add(() =\u003e print(\"took out trash\")); // called when trash is purged\ntrash.purge(); // cleans\ntrash.destroy(); // cleans \u0026 renders class useless\ntrash.removeAll(); //s remove all items without cleaning\n```\n\n### All overloads for `Trash.add()`\n\n```ts\npublic add\u003cName extends keyof T, T extends { [K in Name]: Callback; }\u003e(obj: T, methodName: Name): T;\n\npublic add\u003cT extends RobloxDestroyable\u003e(destroyable: T): T;\n\npublic add\u003cT extends CustomDestroyable\u003e(destroyable: T): T;\n\npublic add\u003cT extends CustomSignal\u003e(signal: T): T;\n\npublic add\u003cT extends BaseSignalConnection\u003e(connection: T): T;\n\npublic add\u003cT extends Promise\u003cunknown\u003e\u003e(promise: T): T;\n\npublic add(thread: thread): thread;\n\npublic add(onCleanup: Callback): void;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-unic%2Ftrash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-unic%2Ftrash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-unic%2Ftrash/lists"}