@xtandard/audit/sinks/file
File sink and recorder fallback: fileSink() appends streamed items as JSON
Lines; fileFallback() parks batches the buffered recorder could not
persist. Uses node:fs (Bun and Node).
import { … } from "@xtandard/audit/sinks/file";Functions
Section titled “Functions”| Name | Summary |
|---|---|
fileFallback |
A RecorderFallback that appends batches the recorder could not persist to a JSONL file. |
fileSink |
Create a JSONL file sink. |
readFallbackLines |
Parse a fallback file’s content back into record inputs (for replay with core.recordMany). Blank lines are skipped. |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
FallbackLine |
One line written by fileFallback. |
FileFallbackOptions |
Options for fileFallback. |
FileSinkOptions |
Options for fileSink. |