Parcelizev3.1.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

  • 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.
  • watchChanges(target, handler). Calls the handler every time the target changes and returns a function to stop watching.
  • serializeState(state). Converts the current state to a compact string that can be restored later.

Installation

yarn add parcelize

Quick start

const { batchUpdate } = require("parcelize");

const result = batchUpdate(data, { strict: true });
console.log(result);

API referenceChangelog