Predictable tools for everyday data tasks
This documentation covers installation, core concepts and the full reference for the public interface.
Features
- 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.
- formatRecord(record, template). Renders a record using a template string with named placeholders.
Installation
pnpm add rilldbQuick start
import { retryTask } from "rilldb";
const result = retryTask(items, { strict: true });
console.log(result);