Getting JSDoc output in JSON format

假装没事ソ 提交于 2019-12-23 21:56:31

问题


Is there any way to configure JSDoc such that the output is in JSON format instead of the usual HMTL format?


回答1:


There is an option "-X" ("explain") which creates a JSON file with parsed AST.

jsdoc -X ./mylib/ > jsdoc-ast.json

To understand this JSON you can use documented schema: https://github.com/jsdoc3/jsdoc/blob/master/lib/jsdoc/schema.js



来源:https://stackoverflow.com/questions/25210156/getting-jsdoc-output-in-json-format

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!