MCPcopy Index your code
hub / github.com/SchemaStore/schemastore / readJsonFile

Function readJsonFile

cli.js:192–194  ·  view source on GitHub ↗
(/** @type {string} */ filename)

Source from the content-addressed store, hash-verified

190}
191
192async function readJsonFile(/** @type {string} */ filename) {
193 return JSON.parse(await fs.readFile(filename, 'utf-8'))
194}
195
196function isIgnoredFile(/** @type {string} */ file) {
197 return file === '.DS_Store'

Callers 3

cli.jsFile · 0.70
ajvFactoryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected