Installation & Setup
Install subatom-infer in your Node.js, Bun, Deno, or Next.js environment.
Install the Package
Use your preferred package manager to add subatom-infer to your project:
bash — 80x24
$npm install subatom-infer
Runtime Requirements
Subatom Infer is targeted for modern runtimes. Recommended engines: Node.js >= 24.0.0, Bun >= 1.0, Deno >= 1.40, or modern browsers with ES2022 support.
ESM and CommonJS Support
The package provides explicit exports for both ECMAScript Modules (`dist/index.mjs`) and CommonJS (`dist/index.cjs`).
Schema Definition
// ESM import
import { infer, type Infer } from "subatom-infer";
// CommonJS require
const { infer } = require("subatom-infer");