UNPKG

@prostory/mountain

Version:

Yet another HTTP/2 server and client.

3 lines (2 loc) 196 B
const n=async n=>new Promise(((o,e)=>{const s=[];n.setEncoding("utf8").on("error",e).on("data",s.push.bind(s)).on("end",(()=>o(s.join(""))))}));export{n as text}; //# sourceMappingURL=text.js.map