Zero dependencies, typed, tested and documented
If you are new, start with the quick start below and move to the reference when you need details.
Features
- mergeConfig(base, overrides). Combines two configuration objects, giving priority to the second and keeping types intact.
- serializeState(state). Converts the current state to a compact string that can be restored later.
- createStore(options). Creates a store from the given options and returns an object with read and write methods.
- retryTask(task, attempts). Runs an asynchronous task again if it fails, with a short delay between attempts.
Installation
yarn add rilldbQuick start
import { mergeConfig } from "rilldb";
const result = mergeConfig(input, { strict: true });
console.log(result);