MCPcopy Index your code
hub / github.com/darkreader/darkreader / readJSON

Function readJSON

tests/dependencies.js:8–10  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

6const packageLockPath = resolve(__dirname, '../package-lock.json');
7
8async function readJSON(path) {
9 return await JSON.parse((await readFile(path)).toString());
10}
11
12function checkDependency({resolved, integrity}) {
13 if (!(

Callers 1

checkDependenciesFunction · 0.70

Calls 1

readFileFunction · 0.85

Tested by

no test coverage detected