MCPcopy Create free account
hub / github.com/ding113/claude-code-hub / sortKeysDeep

Function sortKeysDeep

scripts/sync-settings-keys.js:59–66  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

57}
58
59function sortKeysDeep(obj) {
60 if (!isObject(obj)) return obj;
61 const out = {};
62 for (const key of Object.keys(obj).sort()) {
63 out[key] = sortKeysDeep(obj[key]);
64 }
65 return out;
66}
67
68function loadJSON(p) {
69 return JSON.parse(fs.readFileSync(p, "utf8"));

Callers 2

ensureSettingsFunction · 0.85

Calls 1

isObjectFunction · 0.70

Tested by

no test coverage detected