MCPcopy
hub / github.com/desktop/desktop / readPackageJSON

Function readPackageJSON

script/licenses/license-overrides.ts:17–18  ·  view source on GitHub ↗
(packageName: string)

Source from the content-addressed store, hash-verified

15 join(appNodeModulesPath, ...packageName.split('/'), 'package.json')
16
17const readPackageJSON = (packageName: string): IPackageJSON =>
18 JSON.parse(readFileSync(getPackageJSONPath(packageName), 'utf8'))
19
20const readOptionalPackageJSON = (
21 packageName: string

Callers 1

Calls 2

getPackageJSONPathFunction · 0.85
parseMethod · 0.65

Tested by

no test coverage detected