MCPcopy
hub / github.com/openupm/openupm / loadTopics

Function loadTopics

app/utils/package.js:21–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20// Load topics.
21const loadTopics = async function () {
22 try {
23 let absPath = path.resolve(dataDir, "topics.yml");
24 return yaml.safeLoad(await readFile(absPath, "utf8")).topics;
25 } catch (e) {
26 console.error(e);
27 return [];
28 }
29};
30
31// Load package by name.
32const loadPackage = async function (name) {

Callers 1

data-packages.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected