UNPKG

geostyler

Version:
19 lines (18 loc) 487 B
var l = Object.defineProperty; var d = (r, e, t) => e in r ? l(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t; var n = (r, e, t) => d(r, typeof e != "symbol" ? e + "" : e, t); class c { } /** * Reads a file and returns its content as string. */ n(c, "readFile", async (e) => new Promise((t, s) => { const a = new FileReader(); a.onload = () => { const o = a.result; t(o); }, a.onerror = s, a.readAsText(e); })); export { c as default };