MCPcopy Create free account
hub / github.com/denoland/std / parseFile

Function parseFile

dotenv/mod.ts:299–308  ·  view source on GitHub ↗
(
  filepath: string | URL,
)

Source from the content-addressed store, hash-verified

297}
298
299async function parseFile(
300 filepath: string | URL,
301): Promise<Record<string, string>> {
302 try {
303 return parse(await Deno.readTextFile(filepath));
304 } catch (e) {
305 if (e instanceof Deno.errors.NotFound) return {};
306 throw e;
307 }
308}

Callers 1

loadFunction · 0.85

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected