Skip to content

createFileStorage

function createFileStorage(options): FileWebhooksStorage;

Defined in: src/storage/file.ts:59

Create a file-backed storage. watch is implemented via fs.watch on the base directory (recursive); it is best-effort and may coalesce or miss events on platforms without recursive-watch support.

Parameter Type
options FileStorageOptions

FileWebhooksStorage

import { createFileStorage } from "@xtandard/webhooks/storage/file";
const storage = createFileStorage({ dir: "./data/webhooks" });