| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-05-08 | 3.2 kB | |
| v1.17.0 -- ESM Support, Deno, Cloudflare Workers, Landing Page source code.tar.gz | 2026-05-08 | 5.2 MB | |
| v1.17.0 -- ESM Support, Deno, Cloudflare Workers, Landing Page source code.zip | 2026-05-08 | 5.4 MB | |
| Totals: 3 Items | 10.5 MB | 0 | |
What's New
Native ESM Support
pompelmi now supports both CommonJS and ES Modules natively.
No more createRequire workarounds.
:::js
// ESM (new)
import { scan, scanBuffer, Verdict } from 'pompelmi'
// CommonJS (unchanged)
const { scan, scanBuffer, Verdict } = require('pompelmi')
Deno Support
pompelmi now works natively in Deno:
:::ts
import { scan, Verdict } from 'npm:pompelmi'
const result = await scan('./file.pdf', {
host: 'localhost',
port: 3310
})
Cloudflare Workers Package
@pompelmi/cloudflare is now available on npm.
Scan file uploads at the edge via a remote clamd instance.
:::bash
npm install @pompelmi/cloudflare
:::js
import { scanBuffer } from '@pompelmi/cloudflare'
export default {
async fetch(request, env) {
const formData = await request.formData()
const file = formData.get('file')
const buffer = await file.arrayBuffer()
const result = await scanBuffer(buffer, {
host: env.CLAMAV_HOST,
port: parseInt(env.CLAMAV_PORT)
})
if (result !== 'clean') {
return new Response('File rejected', { status: 422 })
}
return new Response('OK')
}
}
Landing Page Improvements
pompelmi.app now shows:
- Runtime compatibility logos: Node.js • Bun • Deno • Cloudflare Workers
- Framework logos grid: Express • Fastify • NestJS • Next.js • Hono • Remix • SvelteKit
- Live GitHub stars and npm downloads badges
GitHub Sponsors
A Sponsor button is now visible on the GitHub repo via .github/FUNDING.yml.
Runtime Support
| Runtime | Status |
|---|---|
| Node.js | ✅ |
| Bun | ✅ |
| Deno | ✅ |
| Cloudflare Workers | ✅ via @pompelmi/cloudflare |
Framework Integrations
| Package | Framework |
|---|---|
| @pompelmi/nestjs | NestJS |
| @pompelmi/fastify | Fastify |
| @pompelmi/nextjs | Next.js |
| @pompelmi/hono | Hono |
| @pompelmi/remix | Remix |
| @pompelmi/sveltekit | SvelteKit |
| @pompelmi/cloudflare | Cloudflare Workers |
| @pompelmi/testing | Jest / Vitest / Node |
Changes
src/index.mjs— native ESM entry pointpackage.json— dual CJS/ESM exports fielddeno.json— Deno configurationpackages/cloudflare/— Cloudflare Workers package.github/FUNDING.yml— GitHub Sponsors buttondocs/deno.html— Deno usage guidedocs/cloudflare.html— Cloudflare Workers guidedocs/*.html— navbar updatedindex.html— landing page runtime and framework logos
Full Changelog
https://github.com/pompelmi/pompelmi/compare/v1.16.0...v1.17.0