| Option | Type | Description |
files | String|Array |
Required (if source is not set). One or more file/directory paths to be processed. This also accepts a Glob string or array of globs. e.g. ./src/**/*.js will produce an array of all .js files under ./src directory and sub-directories. Default: undefined
|
source | String |
Required (if files is not set). Documented source code to be processed. If files is also set, this will be ignored. Default: undefined
|
config | Object |
Pass a configuration object to the underlying JSDoc core. This will bypass all parser options. Default: {}
|
encoding | String | Encoding to be used when reading source files. Default: "utf8" |
recurse | Boolean |
Specifies whether to recurse into subdirectories when scanning for source files. Default: false
|
pedantic | Boolean |
Specifies whether to treat errors as fatal errors, and treat warnings as errors. Default: false
|
access | String|Array |
Specifies which symbols to be processed with the given access property. Possible values: "private", "protected", "public" or "all" (for all access levels). By default, all except private symbols are processed. Note that, if access is not set for a documented symbol, it will still be included, regardless of this option. Default: undefined
|
private | Boolean | Shorthand for enabling documentation for private access symbols. Default: false |
package | String |
The path to the package.json file that contains the project name, version, and other details. If set to true instead of a path string, the first package.json file found in the source paths. Default: undefined
|
module | Boolean |
Specifies whether to include module.exports symbols. Default: true
|
undocumented | Boolean |
Specifies whether to include undocumented symbols. Default: true
|
undescribed | Boolean |
Specifies whether to include symbols without a description. Default: true
|
ignored | Boolean |
Specifies whether to include symbols marked with @ignore tag. Default: true
|
allowUnknownTags | Boolean |
Specifies whether to allow unrecognized tags.
If set to false parsing will fail on unknown tags. Default: true
|
dictionaries | Array |
Indicates the dictionaries to be used. By default, both standard JSDoc tags and Closure Compiler tags are enabled. Default: ["jsdoc", "closure"]
|
includePattern | String |
String pattern for defining sources to be included. By default, only files ending in ".js", ".jsdoc", and ".jsx" will be processed. Default: ".+\\.js(doc|x)?$"
|
excludePattern | String |
String pattern for defining sources to be ignored. By default, any file starting with an underscore or in a directory starting with an underscore will be ignored. Default: "(^|\\/|\\\\)_"
|
plugins | Array |
Defines the JSDoc plugins to be used.
See this guide on JSDoc plugins. Default: []
|
relativePath | String |
When set, all symbol.meta.path values will be relative to this path. Default: undefined
|
predicate | Function|string |
Alias: filter. This is used to filter the parsed documentation output array. If a Function is passed; it's invoked for each included symbol. e.g. function (symbol) { return symbol; } Returning a falsy value will remove the symbol from the output. Returning true will keep the original symbol. To keep the symbol and alter its contents, simply return an altered symbol object. If a RegExp string is passed, it's executed on the symbol's long name. Default: undefined
|
hierarchy | Boolean |
Specifies whether to arrange symbols by their hierarchy. This will find and move symbols that have a memberof property to a $members property of their corresponding owners. Also the constructor symbol will be moved to a $constructor property of the ClassDeclaration symbol; if any. Default: false
|
sort | Boolean|String |
Specifies whether to sort the documentation symbols. For alphabetic sort, set to true or "alphabetic". To group-sort set to "grouped". (Group sorting is done in the following order: by memberof, by scope, by access type, by kind, alphabetic.) To sort by only "scope" or "access" or "kind", set to corresponding string. (Sorting by kind is done in the following order: constant, package/module, namespace, class, constructor, method, property, enum, typedef, event, interface, mixin, external, other members.) Set to false to disable. Default: false
|
output | String|Object |
Path for a JSON file to be created, containing the output documentation array. Or you can set this to an object for extra options. Default: undefined
|
↳output.path | String | Path for a JSON file to be created. Default: undefined |
↳output.indent | Boolean|Number | Number of spaces for indentation. If set to true, 2 spaces will be used. Default: false |
↳output.force | Boolean |
Whether to create parent directories if they don't exist. Default: false
|
debug | Boolean |
Specifies whether to include extra information within thrown error messages. Default: true
|