Pebblev4.10.9

A small, fast library for working with structured data

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.
  • 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.
  • batchUpdate(items, size). Splits a list into groups of the given size and processes them in order.

Installation

pnpm add pebble

Quick start

const { retryTask } = require("pebble");

const result = retryTask(config, { strict: true });
console.log(result);

API referenceChangelog