MCPcopy Create free account
hub / github.com/GooseMod/OpenAsar / stripJson

Function stripJson

scripts/strip.js:47–47  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

45};
46
47const stripJson = (path) => writeFileSync(path, JSON.stringify(minJson(JSON.parse(readFileSync(path, 'utf8')))));
48
49const tree = (dirPath) => readdirSync(dirPath).forEach((x) => {
50 const path = join(dirPath, x);

Callers 1

treeFunction · 0.85

Calls 1

minJsonFunction · 0.85

Tested by

no test coverage detected