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
Copy file name to clipboardExpand all lines: README.md
+30-24Lines changed: 30 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,23 +7,14 @@
7
7
# jsdoc-parse
8
8
Jsdoc-annotated source code in, JSON format documentation out.
9
9
10
-
Essentially, the output is the raw JSON output of [jsdoc](https://github.com/jsdoc3/jsdoc) with a few extras:
10
+
jsdoc-parse extends [jsdoc](https://github.com/jsdoc3/jsdoc) with a few features:
11
11
12
12
* Support for html input files (see `--html` option).
13
13
* Support for new tags in the input javascript
14
14
*`@category <string>`: Useful for grouping identifiers by category.
15
15
*`@done`: Used to mark `@todo` items as complete.
16
16
*`@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.
17
17
*`@chainable`: Set to mark a method as chainable (has a return value of `this`).
18
-
* Some new fields:
19
-
*`id`: a unique identifier (the jsdoc `longname` field is not guaranteed unique)
20
-
*`isExported`: set to true on the identifier which is exported from a module.
21
-
*`todoList`: A list.
22
-
*`typicalname`
23
-
*`category`
24
-
*`order`: The sort position of the identifier in the source file. Useful for use in `--sort-by` expressions.
25
-
* A separate constructor record. In jsdoc, the class and constructor information are contained within the same record. In jsdoc-parse, the constructor information is separated from the class into a record with kind `"constructor"`.
-f, --src file ... A list of javascript source files (or glob expressions) to parse for
191
+
documentation. If this option is not set jsdoc-parse will wait for source
192
+
code on stdin (i.e. `cat *.js | jsdoc-parse [options]`).
193
+
-P, --private Include identifiers marked @private in the output
194
+
-H, --html Enable experimental parsing of .html files
195
+
--conf file Path to a jsdoc configuration file, passed directly to `jsdoc -c`.
196
+
-s, --sort-by property ... Sort by one of more properties, e.g. `--sort-by kind category`. Defaults to
197
+
`[ "scope", "category", "kind", "order" ]`. Pass the special value `none` to
198
+
remove the default sort order.
199
+
--stats Print a few stats about the doclets parsed
200
+
-h, --help Display this usage.
203
201
```
204
202
205
203
***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)):
@@ -228,6 +226,7 @@ var parse = require("jsdoc-parse")
Copy file name to clipboardExpand all lines: jsdoc2md/README.hbs
+22-24Lines changed: 22 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -7,23 +7,14 @@
7
7
# jsdoc-parse
8
8
Jsdoc-annotated source code in, JSON format documentation out.
9
9
10
-
Essentially, the output is the raw JSON output of [jsdoc](https://github.com/jsdoc3/jsdoc) with a few extras:
10
+
jsdoc-parse extends [jsdoc](https://github.com/jsdoc3/jsdoc) with a few features:
11
11
12
12
* Support for html input files (see `--html` option).
13
13
* Support for new tags in the input javascript
14
14
* `@category <string>`: Useful for grouping identifiers by category.
15
15
* `@done`: Used to mark `@todo` items as complete.
16
16
* `@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.
17
17
* `@chainable`: Set to mark a method as chainable (has a return value of `this`).
18
-
* Some new fields:
19
-
* `id`: a unique identifier (the jsdoc `longname` field is not guaranteed unique)
20
-
* `isExported`: set to true on the identifier which is exported from a module.
21
-
* `todoList`: A list.
22
-
* `typicalname`
23
-
* `category`
24
-
* `order`: The sort position of the identifier in the source file. Useful for use in `--sort-by` expressions.
25
-
* A separate constructor record. In jsdoc, the class and constructor information are contained within the same record. In jsdoc-parse, the constructor information is separated from the class into a record with kind `"constructor"`.
-f, --src file ... A list of javascript source files (or glob expressions) to parse for
191
+
documentation. If this option is not set jsdoc-parse will wait for source
192
+
code on stdin (i.e. `cat *.js | jsdoc-parse [options]`).
193
+
-P, --private Include identifiers marked @private in the output
194
+
-H, --html Enable experimental parsing of .html files
195
+
--conf file Path to a jsdoc configuration file, passed directly to `jsdoc -c`.
196
+
-s, --sort-by property ... Sort by one of more properties, e.g. `--sort-by kind category`. Defaults to
197
+
`[ "scope", "category", "kind", "order" ]`. Pass the special value `none` to
198
+
remove the default sort order.
199
+
--stats Print a few stats about the doclets parsed
200
+
-h, --help Display this usage.
203
201
```
204
202
205
203
***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)):
0 commit comments