@xtandard/links/analytics/memory
In-memory analytics sink — zero dependencies; exact reference aggregation plus unique visitors. For tests, demos and development.
import { … } from "@xtandard/links/analytics/memory";Functions
Section titled “Functions”| Name | Summary |
|---|---|
compareEventsNewestFirst |
Newest first: at descending, then id descending. |
createMemoryAnalytics |
Create an in-memory AnalyticsSink. |
uniqueVisitor |
The visitor counted toward uniques: non-bot clicks that carry a visitor hash. |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
MemoryAnalyticsSink |
The memory sink: an AnalyticsSink with every optional method plus test helpers. |