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) 239 B
async function u(n) { return new Promise((o) => { const f = []; n.on("data", (r) => { f.push(Buffer.from(r)); }), n.on("end", () => o(Buffer.concat(f))), n.on("error", () => o(null)); }); } export { u as default };