Skip to main content

extract_js_module_doc

Function extract_js_module_doc 

Source
pub fn extract_js_module_doc(src: &str) -> Option<String>
Expand description

Extract the file-level JSDoc comment from JavaScript/TypeScript source.

Looks for a /** ... */ block comment at the very top of the file (after optional shebang or blank lines). The comment must start with /** to qualify as JSDoc. Regular /* ... */ comments without the double * are not extracted.