You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://gitter.im/jsdoc2md/jsdoc2md?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
7
7
8
8
# jsdoc-parse
9
-
Jsdoc-annotated source code in, JSON format documentation out.
9
+
Jsdoc explain out in, jsdoc2md template data out.
10
10
11
11
jsdoc-parse extends [jsdoc](https://github.com/jsdoc3/jsdoc) with a few features:
12
12
@@ -17,288 +17,50 @@ jsdoc-parse extends [jsdoc](https://github.com/jsdoc3/jsdoc) with a few features
17
17
*`@typicalname`: If set on a class, namespace or module, child members will documented using this typical name as the parent name. Real-world typical name examples are `$` (the typical name for `jQuery` instances), `_` (underscore) etc.
18
18
*`@chainable`: Set to mark a method as chainable (has a return value of `this`).
19
19
20
-
## Synopsis
21
-
### Simple example
22
-
```
23
-
$ echo "/** a wonderful global */ var majestic = true;" | jsdoc-parse
24
-
[
25
-
{
26
-
"id": "majestic",
27
-
"longname": "majestic",
28
-
"name": "majestic",
29
-
"scope": "global",
30
-
"kind": "member",
31
-
"description": "a wonderful global",
32
-
"order": 0
33
-
}
34
-
]
35
-
```
36
-
37
-
### Longer example
38
-
This input javascript:
39
-
```js
40
-
/**
41
-
Pump an idiot full of volts. Returns a promise they will slump.
-f, --src file ... A list of javascript source files (or glob expressions) to parse for
189
-
documentation. If this option is not set jsdoc-parse will wait for source
190
-
code on stdin (i.e. `cat *.js | jsdoc-parse [options]`).
191
-
-P, --private Include identifiers marked @private in the output
192
-
-H, --html Enable experimental parsing of .html files
193
-
--conf file Path to a jsdoc configuration file, passed directly to `jsdoc -c`.
194
-
-s, --sort-by property ... Sort by one of more properties, e.g. `--sort-by kind category`. Defaults to
195
-
`[ "scope", "category", "kind", "order" ]`. Pass the special value `none` to
196
-
remove the default sort order.
197
-
--stats Print a few stats about the doclets parsed
198
-
-h, --help Display this usage.
199
-
```
200
-
201
-
***Usage form 2 warning***: When piping input into `jsdoc-parse` it will intepret the whole of what is piped in as a single file, so take care not to pipe in input containing multipe @modules as this is illegal in jsdoc (see [here](http://usejsdoc.org/tags-module.html)):
202
-
203
-
> The @module tag marks the current file as being its own module. All symbols in the file are assumed to be members of the module unless documented otherwise.
-[.private] boolean - Include identifier documentation marked as `@private` in the output
43
+
-[.html] boolean - Enable experimental parsing of .html files.
44
+
-[.sort-by] Array.<string> <code> = [ 'scope', 'category', 'kind', 'order' ]</code> - Sort by one of more fields, e.g. `--sort-by kind category`. Pass the special value `none` to remove the default sort order.
245
45
246
-
**Kind**: inner class of <code>[jsdocParse](#exp_module_jsdoc-parse--jsdocParse)</code>
A list of javascript source files (or glob expressions) to parse for documentation. If this option is not set jsdoc-parse will wait for source code on stdin (i.e. `cat *.js | jsdoc-parse <options>`).
259
-
260
-
**Kind**: instance property of <code>[ParseOptions](#module_jsdoc-parse--jsdocParse..ParseOptions)</code>
[](https://gitter.im/jsdoc2md/jsdoc2md?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
7
+
8
+
# jsdoc-parse
9
+
Jsdoc explain out in, jsdoc2md template data out.
10
+
11
+
jsdoc-parse extends [jsdoc](https://github.com/jsdoc3/jsdoc) with a few features:
12
+
13
+
* Support for html input files (see `--html` option).
14
+
* Support for new tags in the input javascript
15
+
*`@category <string>`: Useful for grouping identifiers by category.
16
+
*`@done`: Used to mark `@todo` items as complete.
17
+
*`@typicalname`: If set on a class, namespace or module, child members will documented using this typical name as the parent name. Real-world typical name examples are `$` (the typical name for `jQuery` instances), `_` (underscore) etc.
18
+
*`@chainable`: Set to mark a method as chainable (has a return value of `this`).
0 commit comments