Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any open source JSDoc parser written in Javascript?

I am looking for a JSDoc parser that I can use in my project. I am looking for something where I can pass in a JSDoc comment and receive a structured description of what that comment means. Most of the tools I have seen seem to be able to transform JSDoc comments into HTML or some other format. I am looking for something that will provide the intermediate representation of a comment that can be used to feed into other tools.

Are there any tools or libraries out there that I can use?

like image 980
Andrew Eisenberg Avatar asked Aug 07 '12 18:08

Andrew Eisenberg


2 Answers

The Doctrine project does exactly what I am looking for:

http://eslint.org/doctrine/demo/

like image 118
Andrew Eisenberg Avatar answered Nov 11 '22 15:11

Andrew Eisenberg


If you need only parsing functionality and don't care about tags meaning then comment-parser may help

like image 33
Sergii Avatar answered Nov 11 '22 13:11

Sergii