ESDoc is a documentation generator for JavaScript(ES6).
- Generates detailed document.
- Measures document coverage.
- Cross reference of test and document.
- Targets at ES6
class
andimport/export
style.
- ESDoc is self-hosting π
- Libraries written by ES6 without document tags
npm install -g esdoc
esdoc -h
esdoc -c esdoc.json
βββ esdoc.json
βββ src/MyClass.js
src/MyClass.js
/**
* this is MyClass.
*/
export default class MyClass {
/**
* @param {number} param this is param.
* @return {number} this is return.
*/
method(param){}
}
esdoc.json
{
"source": "./src",
"destination": "./esdoc"
}
exec esdoc
esdoc -c esdoc.json
open ./esdoc/index.html
please visit esdoc.org to see more document.
MIT