Something went wrong. Try again.
self-hosted listenbrainz and last.fm proxy
Something went wrong. Try again.
1234567891011import { readFileSync } from "fs";
export const loadConfigImpl = (path, onLeft, onRight) => () => { try { const json = readFileSync(path, { encoding: "utf8" }); onRight(JSON.parse(json))(); } catch (e) { onLeft(e.message || String(e))(); }};