Parcelizev4.2.9

Simple building blocks for reliable applications

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

Features

  • watchChanges(target, handler). Calls the handler every time the target changes and returns a function to stop watching.
  • parseInput(value, schema). Validates a value against a schema and returns the cleaned result or a list of errors.
  • 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

pnpm add parcelize

Quick start

import { watchChanges } from "parcelize";

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

API referenceChangelog