MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / loadLicenseMap

Function loadLicenseMap

scripts/fetchLicenses.mjs:24–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22const LICENSE_MAP_PATH = path.join(path.dirname(new URL(import.meta.url).pathname), "npmLicenseMap.json");
23
24function loadLicenseMap() {
25 if (!fs.existsSync(LICENSE_MAP_PATH)) {
26 return {};
27 }
28 return JSON.parse(fs.readFileSync(LICENSE_MAP_PATH, "utf-8"));
29}
30
31function deepEqual(a, b) {
32 return JSON.stringify(a) === JSON.stringify(b);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected