MCPcopy Create free account
hub / github.com/jsdoc/jsdoc / isModuleExports

Function isModuleExports

lib/jsdoc/util/templateHelper.js:174–177  ·  view source on GitHub ↗

* Check whether a symbol is the only symbol exported by a module (as in * `module.exports = function() {};`). * * @private * @param {module:jsdoc/doclet.Doclet} doclet - The doclet for the symbol. * @return {boolean} `true` if the symbol is the only symbol exported by a module; otherwise, * `f

(doclet)

Source from the content-addressed store, hash-verified

172 * `false`.
173 */
174function isModuleExports(doclet) {
175 return doclet.longname && doclet.longname === doclet.name &&
176 doclet.longname.indexOf(MODULE_NAMESPACE) === 0 && doclet.kind !== 'module';
177}
178
179function makeUniqueId(filename, id) {
180 let key;

Callers 1

templateHelper.jsFile · 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…