MCPcopy
hub / github.com/vercel/next.js / writeJson

Function writeJson

packages/next/taskfile.js:3035–3040  ·  view source on GitHub ↗
(file, obj, { spaces = 0 } = {})

Source from the content-addressed store, hash-verified

3033}
3034
3035function writeJson(file, obj, { spaces = 0 } = {}) {
3036 return fs.writeFile(
3037 file,
3038 JSON.stringify(obj, null, spaces) + (spaces === 0 ? '\n' : '')
3039 )
3040}
3041
3042function rmrf(path, options) {
3043 return fs.rm(path, { recursive: true, force: true, ...options })

Callers 8

capsize_metricsFunction · 0.70
copy_vercel_ogFunction · 0.70
ncc_edge_runtime_cookiesFunction · 0.70
ncc_next_fontFunction · 0.70

Calls 2

writeFileMethod · 0.65
stringifyMethod · 0.45

Tested by

no test coverage detected