Skip to main content

Built and signed on GitHub Actions

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

This package works with Deno
This package works with Deno
JSR Score
100%
Published
9 months ago (0.0.2)

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

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);
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@hello/blueprint

Import symbol

import * as blueprint from "@hello/blueprint";

---- OR ----

Import directly with a jsr specifier

import * as blueprint from "jsr:@hello/blueprint";