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
- mergeConfig(base, overrides). Combines two configuration objects, giving priority to the second and keeping types intact.
- 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.
- formatRecord(record, template). Renders a record using a template string with named placeholders.
Installation
pnpm add quillstreamQuick start
import { mergeConfig } from "quillstream";
const result = mergeConfig(config, { strict: true });
console.log(result);