Skip to content

Test Now: @briklab/lib

Use this page when you want to try @briklab/lib quickly in a fresh folder.

Fast Start (pnpm)

bash
mkdir briklib-test
cd briklib-test
pnpm init
pnpm add @briklab/lib

Quick Smoke Test

Create index.mjs:

js
import { Warner } from "@briklab/lib/warner";
import { JSTC } from "@briklab/lib/jstc";

const warner = new Warner({ level: "summary", packageName: "test-now" });
warner.warn({ message: "Smoke test warning" });
warner.finalize();

JSTC.setProtectionLevel("boundary");
console.log(JSTC.for([123]).check(["number"])); // true

Run:

bash
node index.mjs

What To Expect

You should see true in output and warning summary behavior from Warner.

Live Demo

Live JSTC Check

Try runtime type validation directly in the docs page.

Run to see output.

Diagram

100%Ctrl + wheel to zoom