MCPcopy Create free account
hub / github.com/modem-dev/hunk / packageVersion

Function packageVersion

benchmarks/run.ts:98–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98async function packageVersion() {
99 try {
100 const packageJson = JSON.parse(await Bun.file("package.json").text()) as { version?: string };
101 return packageJson.version;
102 } catch {
103 return undefined;
104 }
105}
106
107function parseMetrics(output: string) {
108 const metrics = new Map<string, number>();

Callers 1

run.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected