UNPKG

@sigiljs/sigil

Version:

TypeScript-first Node.js HTTP framework offering schema-driven routing, modifier-based middleware, plugin extensibility, and flexible response templating

12 lines (11 loc) 196 B
function s(n, t) { try { const e = n(); return e instanceof Promise ? e.catch((c) => (t && t(c), null)) : e; } catch (e) { return t && t(e), null; } } export { s as default };