Simple building blocks for reliable applications
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.
- 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.
Installation
yarn add quillstreamQuick start
const { retryTask } = require("quillstream");
const result = retryTask(input, { strict: true });
console.log(result);