MCPcopy Create free account
hub / github.com/SchemaStore/schemastore / writeJsonFile

Function writeJsonFile

scripts/build-xregistry.js:76–78  ·  view source on GitHub ↗

* Writes data to a JSON file. * @param {string} filename - The file to write to. * @param {any} data - The data to write.

(filename, data)

Source from the content-addressed store, hash-verified

74 * @param {any} data - The data to write.
75 */
76async function writeJsonFile(filename, data) {
77 await fs.writeFile(filename, JSON.stringify(data, null, 2), 'utf-8')
78}
79
80/**
81 * Extracts the domain from a URL.

Callers 1

buildXRegistryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected