Lifetime, event, and resource management.
pnpm add @gottheflag/lifecycleThe package provides two primitives:
Lifecycle<TEvents>— synchronous cleanup, ownership, child lifecycles, and typed events.AsyncLifecycle<TEvents>— the asynchronous counterpart with awaited teardown.
Open docs/index.html directly in a browser for the complete API reference. No documentation server or build step is required.
pnpm check
pnpm playground