Skip to content

@briklab/lib FAQ & Gotchas

FAQ

Which module should I start with?

Start with:

  • jstc for runtime type validation.
  • warner for structured warnings.
  • cli-john for command-line apps.

Is this browser-safe?

Most modules are usable in browser builds, but cli-john is Node.js-focused.

Can I use just one submodule?

Yes. Import only what you need, for example: @briklab/lib/jstc or @briklab/lib/warner.

Gotchas

Duplicate ProtectionLevel Types

ProtectionLevel exists in more than one submodule docs path. Use the one that matches your import path to avoid confusion.

Keep Import Paths Explicit

Prefer @briklab/lib/<module> imports over ambiguous aliases in examples.

Node-Only CLI

cli-john expects Node.js runtime objects (for example process from node:process).

Legacy Node Implementations

Old node-specific variants were removed. See Node Implementations.

Diagram

100%Ctrl + wheel to zoom