MCPcopy Index your code
hub / github.com/jsdoc/jsdoc / readPackageJson

Function readPackageJson

cli.js:244–255  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

242 };
243
244 function readPackageJson(filepath) {
245 const fs = require('jsdoc/fs');
246
247 try {
248 return stripJsonComments( fs.readFileSync(filepath, 'utf8') );
249 }
250 catch (e) {
251 logger.error('Unable to read the package file "%s"', filepath);
252
253 return null;
254 }
255 }
256
257 function buildSourceList() {
258 const Readme = require('jsdoc/readme');

Callers 1

buildSourceListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…