JSdoc generated documentation on my nodejs modules.
/**
Do something
*/
function doSomething(param1, param2) {
// blah blah
...
}
module.exports.doSomething = doSomething;
JSDoc's generated file generated the comment under Global scope, and I have hundreds of exported functions like that.
Is there any way to make JSDoc to generated the documentations grouped by module file names?
At the top of your file, you need to include a jsdoc comment like so. You can also name the module to something else if desired.
/**
@module FileNameOrCustomModuleName
*/
I don't think you can have multiple @module
directives in a single file though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With