MCPcopy Create free account
hub / github.com/api3dao/airnode / readPackageVersion

Function readPackageVersion

packages/airnode-examples/src/utils.ts:75–78  ·  view source on GitHub ↗
(filename = '../package.json')

Source from the content-addressed store, hash-verified

73 * @returns The package version from the file (throws if it doesn't exist)
74 */
75export const readPackageVersion = (filename = '../package.json') => {
76 const packageJson = JSON.parse(readFileSync(join(__dirname, filename)).toString());
77 return packageJson.version;
78};
79
80/**
81 * @param secrets The lines of the secrets file

Callers 4

utils.test.tsFile · 0.90
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected