MCPcopy Create free account
hub / github.com/appium/appium / writeJson

Function writeJson

scripts/sync-monorepo-packages.mjs:38–40  ·  view source on GitHub ↗

* Stringify an object and write it to a JSON file. * @param {string} filepath * @param {Object} data * @returns {Promise }

(filepath, data)

Source from the content-addressed store, hash-verified

36 * @returns {Promise<void>}
37 */
38async function writeJson(filepath, data) {
39 await fs.writeFile(filepath, `${JSON.stringify(data, null, 2)}\n`);
40}
41
42/**
43 * Get the directories of all packages in the monorepo by looking for package.json files.

Callers 1

syncPackageJsonFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected