MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / samePath

Function samePath

scripts/add-lang/check-grammar.mjs:56–56  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

54
55const fail = (code, msg) => { console.error(`[check-grammar] ${msg}`); process.exit(code); };
56const samePath = (a, b) => (process.platform === 'win32' ? a.toLowerCase() === b.toLowerCase() : a === b);
57
58function resolveWasm(t) {
59 if (t.endsWith('.wasm')) return existsSync(t) ? path.resolve(t) : fail(2, `wasm not found: ${t}`);

Callers 1

runGrammarFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected