
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
jsdoc-zero
Advanced tools
===========================================================================
JSDOC-ZERO 与其他文档生成工具的不同之处在于它是以文件目录为单位,一层一层递归的,适用于工程较大、文件内容较多、文件夹层次较深的项目。
安装 JSDOC-ZERO 为全局工具:
$ npm install jsdoc-zero -g
首先在项目根目录下建立 dox.config.json 文件,默认内容为:
{
"name" : "default",
"version" : "0.0.1",
"source" : {
"include": [
"lib"
],
"exclude": [
"node_modules"
],
"suffix" : [
".js"
],
"output" : "doc/dox"
}
}
其中含义:
新建文件 dox.config.json 完成之后,根据自己的具体项目完善配置文件,然后在当前项目的根目录下的命令行中执行命令:
$ jdz build
此时 jdz 会自动寻找项目根目录下的 dox.config.json 文件进行相关操作。
when JSDOC-ZERO generating documentation, it will empty all files under the output directory.
First JSDOC-ZERO in the output directory to establish an index file: index.html, it contains Waiting for the check folder and its subdirectories directory of all md files.

Generated JSDOC specification file, it include the basic file information at the head and set the anchor point of the page method, is used for quick jump.

New add search function and it will search for file‘s comments content by the input method name:

The md file rendering display:

2016/7/15| Statements: | 79.1% ( 159/201 ) | |---| | Branches: | 51.22% ( 42/82 ) | | Functions: | 88.24% ( 45/51 ) | | Lines: | 80.3% ( 159/198 ) |
FAQs
Generate documentation by jsdoc.
We found that jsdoc-zero demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.