MCPcopy Create free account
hub / github.com/TanStack/router / getPackageName

Function getPackageName

e2e/solid-start/basic/tests/utils/getPackageName.ts:6–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4let packageName: string | undefined
5
6export function getPackageName() {
7 if (!packageName) {
8 const packageJson = JSON.parse(
9 readFileSync(join(process.cwd(), 'package.json'), 'utf-8'),
10 ) as { name: string }
11
12 packageName = packageJson.name
13 }
14
15 return packageName
16}

Callers 1

getE2EPortKeyFunction · 0.90

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected