parse-comments:解析JavaScript代码注释。 适用于块和行注释,并且应与CSS,LESS,SASS或具有相同注释格式的任何语言一起使用

时间:2021-01-31 02:30:49
【文件属性】:
文件名称:parse-comments:解析JavaScript代码注释。 适用于块和行注释,并且应与CSS,LESS,SASS或具有相同注释格式的任何语言一起使用
文件大小:401KB
文件格式:ZIP
更新时间:2021-01-31 02:30:49
nodejs javascript markdown documentation babel 解析注释 从JavaScript或使用相同格式的任何语言解析代码注释。 请考虑关注该项目的作者 ,并考虑为该项目以显示您的 :red_heart_selector: 和支持。 安装 使用安装: $ npm install --save parse-comments 用法 const Comments = require ( 'parse-comments' ) ; const comments = new Comments ( ) ; const ast = comments . parse ( str ) ; console . log ( ast ) ; 解析这样的评论: /** * Create an instance of `CustomClass` with the given `options`. * * @param { String } options * @api public */ class CustomClass { constructor ( options ) { this . options = options ; }
【文件预览】:
parse-comments-master
----.eslintrc.json(4KB)
----.gitattributes(128B)
----.github()
--------.github()
--------contributing.md(3KB)
----recipes()
--------linter.js(181B)
--------package.json(3B)
----bench()
--------load-type.js(277B)
--------index.js(1KB)
----lib()
--------utils.js(6KB)
--------validate()
--------parse()
--------normalize()
--------error.js(545B)
--------index.js(556B)
--------schema.js(1KB)
--------format()
----.verb.md(2KB)
----examples()
--------getters.js(783B)
--------fixtures()
--------parse-tag.js(778B)
--------formatter.js(485B)
--------extract.js(311B)
--------parse-type.js(557B)
--------formatters.js(3KB)
--------parse.js(1KB)
--------parse-require.js(434B)
--------format-comment.js(647B)
----.travis.yml(116B)
----LICENSE(1KB)
----test()
--------parse.tag.js(53KB)
--------tokenize.examples-javadoc.js(4KB)
--------tokenize.tag.js(8KB)
--------parse.tag.doctrine.js(93KB)
--------parse.optional.js(15KB)
--------fixtures()
--------parse.type.js(20KB)
--------tokenize.examples-gfm.js(8KB)
--------format.js(25KB)
--------utils.js(4KB)
--------tokenize.examples.js(5KB)
--------parse.namepaths.js(3KB)
--------parse.type.doctrine.js(16KB)
--------parse.inline.js(10KB)
--------tokenize.examples-indented.js(7KB)
--------parse.name.js(908B)
--------tokenize.js(17KB)
--------support()
----README.md(8KB)
----.npmrc(19B)
----docs()
--------content()
--------comparisons.js(5KB)
----.editorconfig(289B)
----.gitignore(302B)
----index.js(10KB)
----support()
--------content()
----package.json(1KB)

网友评论