Do more with less code
This documentation covers installation, core concepts and the full reference for the public interface.
Features
- serializeState(state). Converts the current state to a compact string that can be restored later.
- retryTask(task, attempts). Runs an asynchronous task again if it fails, with a short delay between attempts.
- batchUpdate(items, size). Splits a list into groups of the given size and processes them in order.
- mergeConfig(base, overrides). Combines two configuration objects, giving priority to the second and keeping types intact.
Installation
pnpm add rilldbQuick start
const { serializeState } = require("rilldb");
const result = serializeState(config, { strict: true });
console.log(result);