MCPcopy Create free account
hub / github.com/alangpierce/sucrase / readJSONFileContents

Function readJSONFileContents

script/util/readFileContents.ts:7–9  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

5}
6// eslint-disable-next-line @typescript-eslint/no-explicit-any
7export async function readJSONFileContents(path: string): Promise<any> {
8 return JSON.parse(await readFileContents(path));
9}
10
11// eslint-disable-next-line @typescript-eslint/no-explicit-any
12export async function readJSONFileContentsIfExists(path: string): Promise<any> {

Callers 2

getBabelPluginsFunction · 0.90

Calls 1

readFileContentsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…