Quillstreamv3.14.7

Zero dependencies, typed, tested and documented

This documentation covers installation, core concepts and the full reference for the public interface.

Features

  • mergeConfig(base, overrides). Combines two configuration objects, giving priority to the second and keeping types intact.
  • watchChanges(target, handler). Calls the handler every time the target changes and returns a function to stop watching.
  • batchUpdate(items, size). Splits a list into groups of the given size and processes them in order.
  • retryTask(task, attempts). Runs an asynchronous task again if it fails, with a short delay between attempts.

Installation

yarn add quillstream

Quick start

import { mergeConfig } from "quillstream";

const result = mergeConfig(items, { strict: true });
console.log(result);

API referenceChangelog