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
- 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.
- mergeConfig(base, overrides). Combines two configuration objects, giving priority to the second and keeping types intact.
Installation
pnpm add rilldbQuick start
const { parseInput } = require("rilldb");
const result = parseInput(data, { strict: true });
console.log(result);