文件名称:api-toc:传递目录名,获取API的基本markdown格式的目录
文件大小:8KB
文件格式:ZIP
更新时间:2024-06-07 09:15:12
JavaScript
api-toc 传递一个目录名,为您的API获取一个markdown格式的目录。 当前,这是相当有道理的,但是我可以添加reduce或filter函数以允许自定义输出。 公关或建议欢迎。 用安装 $ npm i api-toc --save 用法 var toc = require ( 'api-toc' ) ; 例子 在fixtures/使用伪代码: toc ( 'fixtures/' ) ; 结果是: .foo 生成的降价看起来像这样: + **[ config ](fixtures/config.js)** - [ .disable ](fixtures/config.js#L10) - [ .enable ](fixtures/config.js#L6) - [ .option ](fixtures/config.js#L2) + **[ sto
【文件预览】:
api-toc-master
----.travis.yml(89B)
----index.js(3KB)
----test.js(4KB)
----package.json(779B)
----LICENSE(1KB)
----.gitignore(120B)
----.verb.md(2KB)
----README.md(2KB)
----.jshintrc(281B)
----.editorconfig(424B)
----.gitattributes(127B)
----fixtures()
--------config.js(206B)
--------storage.js(192B)
--------utils.js(186B)
--------one()