A small, fast library for working with structured data
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.
- retryTask(task, attempts). Runs an asynchronous task again if it fails, with a short delay between attempts.
- createStore(options). Creates a store from the given options and returns an object with read and write methods.
- batchUpdate(items, size). Splits a list into groups of the given size and processes them in order.
Installation
pnpm add fluxonQuick start
import { mergeConfig } from "fluxon";
const result = mergeConfig(data, { strict: true });
console.log(result);