MCPcopy Index your code
hub / github.com/darkreader/darkreader / writeJSON

Function writeJSON

tasks/utils.js:158–161  ·  view source on GitHub ↗
(dest, content, space = 4)

Source from the content-addressed store, hash-verified

156 * @returns {Promise<void>}
157 */
158export async function writeJSON(dest, content, space = 4) {
159 const string = JSON.stringify(content, null, space);
160 return await writeFile(dest, string);
161}
162
163/**
164 * @param {string | string[]} patterns

Callers 2

writeDenoJSONFunction · 0.90
manifestsFunction · 0.90

Calls 1

writeFileFunction · 0.85

Tested by

no test coverage detected