MCPcopy Index your code
hub / github.com/microsoft/vscode-js-debug / readJson

Function readJson

gulpfile.js:72–75  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

70const readFile = util.promisify(fs.readFile);
71
72async function readJson(file) {
73 const contents = await readFile(path.join(__dirname, file), 'utf-8');
74 return JSON.parse(contents);
75}
76
77const del = async patterns => {
78 const files = glob.sync(patterns, { cwd: __dirname });

Callers 2

gulpfile.jsFile · 0.85
getConstantDefinesFunction · 0.85

Calls 1

parseMethod · 0.65

Tested by

no test coverage detected