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
- 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.
- formatRecord(record, template). Renders a record using a template string with named placeholders.
Installation
npm install kernelpopQuick start
import { retryTask } from "kernelpop";
const result = retryTask(data, { strict: true });
console.log(result);