MCPcopy Create free account
hub / github.com/PrismarineJS/minecraft-data / writeJSON

Function writeJSON

tools/js/incrementVersion.js:11–13  ·  view source on GitHub ↗
(path, data)

Source from the content-addressed store, hash-verified

9}
10
11function writeJSON (path, data) {
12 fs.writeFileSync(path, JSON.stringify(data, null, 2), 'utf-8')
13}
14
15// Reads and updates the JSON after processing in callback
16function alterJSON (path, callback) {

Callers 2

alterJSONFunction · 0.85
updateProtocolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…