Predictable tools for everyday data tasks
This documentation covers installation, core concepts and the full reference for the public interface.
Features
- createStore(options). Creates a store from the given options and returns an object with read and write methods.
- serializeState(state). Converts the current state to a compact string that can be restored later.
- parseInput(value, schema). Validates a value against a schema and returns the cleaned result or a list of errors.
- batchUpdate(items, size). Splits a list into groups of the given size and processes them in order.
Installation
npm install datumQuick start
const { createStore } = require("datum");
const result = createStore(items, { strict: true });
console.log(result);