createFileStorage
function createFileStorage(options): FileFlagsStorage;Defined in: storage/file.ts:48
Create a file-backed FileFlagsStorage. 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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
FileStorageOptions |
Returns
Section titled “Returns”Example
Section titled “Example”import { createFileStorage } from "@xtandard/flags/storage/file";
const storage = createFileStorage({ dir: "./data/flags" });