search/
Start typing to search packages!
package_2
janitor
By @cometahn142
Roblox
Mirrored from WallyThis version ships no README. Showing the README from v0.1.2, mirrored from wally.
Janitor
Janitor is a cleanup utility for Roblox/Luau. It tracks resources and cleans them in one call.
It is useful for managing:
- RBXScriptConnections
- Instances
- Threads
- Functions
- Custom objects with cleanup methods
- Pending Promises
It is especially useful for objects with a clear lifecycle, such as UI controllers, character systems, tools, and service-level subscriptions.
Installation
[dependencies]
Janitor = "cometahn142/janitor@^0.1"
Quick Example
local Janitor = require(Packages.Janitor)
local janitor = Janitor.new()
janitor:Add(workspace.ChildAdded:Connect(function() end), "Disconnect")
janitor:Add(function()
print("custom cleanup")
end, true)
janitor:Cleanup()
Documentation
- Installation
- Usage Patterns
- Janitor API
License
MIT. See LICENSE.
Package Details
Install command (Click to copy)
Version
0.2.0
License
MIT
Safe for commercial use
Automated license review — not legal advice.
