MCPcopy Index your code
hub / github.com/jhen0409/react-native-debugger / getModuleInfo

Function getModuleInfo

npm-package/src/injectDevToolsMiddleware.js:129–134  ·  view source on GitHub ↗
(modulePath, moduleName)

Source from the content-addressed store, hash-verified

127}
128
129const getModuleInfo = (modulePath, moduleName) => {
130 const pkg = JSON.parse(
131 fs.readFileSync(join(modulePath, moduleName, 'package.json')),
132 ); // eslint-disable-line
133 return { version: pkg.version, name: pkg.name }
134}
135
136function getFlag(moduleName, version) {
137 const list = flags[moduleName || 'react-native'] || {}

Callers 2

injectFunction · 0.85
revertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected