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

Function getJSON

tools/js/incrementVersion.js:7–9  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

5const data = join(__dirname, '..', '..', 'data')
6
7function getJSON (path) {
8 return JSON.parse(fs.readFileSync(path, 'utf-8'))
9}
10
11function writeJSON (path, data) {
12 fs.writeFileSync(path, JSON.stringify(data, null, 2), 'utf-8')

Callers 1

alterJSONFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…