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

Function minJson

scripts/strip.js:41–45  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

39const stripHtml = (path) => writeFileSync(path, stripCode(fixHtml(readFileSync(path, 'utf8'))));
40
41const minJson = (data) => {
42 if (data.description) delete data.description;
43
44 return data;
45};
46
47const stripJson = (path) => writeFileSync(path, JSON.stringify(minJson(JSON.parse(readFileSync(path, 'utf8')))));
48

Callers 1

stripJsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected