📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-01 00:33:22
📂
/ (Root)
/
home
/
orkouolp
/
nodevenv
/
node_js
/
orkofarms.com
/
18
/
lib
/
node_modules
/
jsdoc
/
plugins
📍 /home/orkouolp/nodevenv/node_js/orkofarms.com/18/lib/node_modules/jsdoc/plugins
🔄 Refresh
✏️
Editing: commentsOnly.js
Writable
/** * Remove everything in a file except JSDoc-style comments. By enabling this plugin, you can * document source files that are not valid JavaScript (including source files for other languages). * @module plugins/commentsOnly */ exports.handlers = { beforeParse(e) { // a JSDoc comment looks like: /**[one or more chars]*/ const comments = e.source.match(/\/\*\*[\s\S]+?\*\//g); if (comments) { e.source = comments.join('\n\n'); } else { e.source = ''; // If file has no comments, parser should still receive no code } } };
💾 Save Changes
❌ Cancel