Jabolol/blueprint

Fast schema parser using C++ under the hood for performance

★ 0Forks 0C++GitHub ↗Compare

Project website ↗

configffischema

README

blueprint

Fast schema parser using C++ under the hood for performance.

installation

Note

In order to use this package, an architecture of windows-x86_64, linux-x86_64, macos-x86_64 or macos-aarch64 is required.

  1. Install the package from the jsr registry:
deno add @hello/blueprint
  1. Import the package in your project:
import { b } from "@hello/blueprint";
  1. Initialize the parser:
using handle = await b.init();
  1. Create a schema:
const schema = b.object({
  name: b.string(),
  age: b.number().min(18),
});
  1. Create data to parse:
const data = {
  name: "Javi",
  age: 21,
};
  1. Parse the data:
const result = b.parse(schema, data);

Contributors

Jabolol

Issues