Fast schema parser using C++ under the hood for performance.
Note
In order to use this package, an architecture of windows-x86_64,
linux-x86_64, macos-x86_64 or macos-aarch64 is required.
- Install the package from the
jsrregistry:
deno add @hello/blueprint- Import the package in your project:
import { b } from "@hello/blueprint";- Initialize the parser:
using handle = await b.init();- Create a schema:
const schema = b.object({
name: b.string(),
age: b.number().min(18),
});- Create data to parse:
const data = {
name: "Javi",
age: 21,
};- Parse the data:
const result = b.parse(schema, data);