Skip to content
PACKAGES

fileBackend()

Node filesystem byte backend with atomic replace writes and D85 conditional create.

import { fileBackend } from "@graphrefly/ts/storage/node";
function fileBackend(
dir: string,
opts: FileBackendOptions = {},
): StorageBackend
ParameterTypeDescription
dirstringdir value used by the helper.
optsFileBackendOptionsOptions that configure the helper.

A StorageBackend value.

import { fileBackend } from "@graphrefly/ts/storage/node";

packages/ts/src/storage/node.ts