Kernelpopv2.2.5

Do more with less code

The library is released under the MIT license and has no runtime dependencies. It runs in modern browsers and on current server runtimes.

Features

  • formatRecord(record, template). Renders a record using a template string with named placeholders.
  • batchUpdate(items, size). Splits a list into groups of the given size and processes them in order.
  • createStore(options). Creates a store from the given options and returns an object with read and write methods.
  • watchChanges(target, handler). Calls the handler every time the target changes and returns a function to stop watching.

Installation

pnpm add kernelpop

Quick start

const { formatRecord } = require("kernelpop");

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

API referenceChangelog