Installation
bun add brexnpm install brexpnpm add brexyarn add brexRuntime requirements
Section titled “Runtime requirements”- Node ≥ 20.19, or any modern runtime with a global
fetch(Bun, Deno, browsers, edge runtimes). - The package is ESM-only. On Node ≥ 20.19,
require("brex")works too, thanks torequire(esm)support. - Zero runtime dependencies.
What you get
Section titled “What you get”The package ships 11 entry points: the root brex client plus one subpath per
Brex API (brex/payments, brex/expenses, and so on). Each entry point
carries its own types and, for the subpaths, a lightweight client factory. See
Tree-shakeable imports for when to use which.
Next: head to the Quickstart.