# JavaScript SDK

> The zero-dependency, fail-open JavaScript client for Node, Bun, Deno and edge runtimes: a hard timeout, never throws, and lets sign-ups through on errors.

Source: https://antiburner.com/docs/sdk  
Markdown: https://antiburner.com/docs/sdk.md  
Section: SDK

Zero dependencies, works anywhere fetch exists. Never throws on API trouble.

```bash title="terminal"
npm install antiburner
```

```typescript title="check.ts"
import { AntiBurner } from "antiburner";

const ab = new AntiBurner({ apiKey: process.env.ANTIBURNER_KEY! });

const r = await ab.check("Ana.Lima+promo@GMail.com");
r.action;            // "allow"
r.normalized_email;  // "analima@gmail.com"

const many = await ab.bulk(["a@mailinator.com", "x@duck.com"]);
```

## Options

| Option | Default |
| --- | --- |
| apiKey | required |
| baseUrl | https://api.antiburner.com |
| timeoutMs | 300 |
| onError({ reason, status, email }) | none |
| fetch | globalThis.fetch |
