File tree Expand file tree Collapse file tree 4 files changed +19
-18
lines changed Expand file tree Collapse file tree 4 files changed +19
-18
lines changed Original file line number Diff line number Diff line change 1
1
import jsdoc from 'jsdoc-api'
2
- import util from 'node:util'
3
- util . inspect . defaultOptions . depth = 6
4
- util . inspect . defaultOptions . breakLength = process . stdout . columns
5
- util . inspect . defaultOptions . maxArrayLength = Infinity
6
2
7
3
const data = await jsdoc . explain ( { source : '/** example doclet */ \n var example = true' } )
8
4
console . log ( data )
Original file line number Diff line number Diff line change 1
1
import jsdoc from 'jsdoc-api'
2
- import util from 'node:util'
3
- util . inspect . defaultOptions . depth = 6
4
- util . inspect . defaultOptions . breakLength = process . stdout . columns
5
- util . inspect . defaultOptions . maxArrayLength = Infinity
6
2
7
3
const data = await jsdoc . explain ( { files : process . argv . slice ( 2 ) , cache : true } )
8
4
console . log ( data )
Original file line number Diff line number Diff line change 1
1
import jsdoc from 'jsdoc-api'
2
- import util from 'node:util'
3
- util . inspect . defaultOptions . depth = 6
4
- util . inspect . defaultOptions . breakLength = process . stdout . columns
5
- util . inspect . defaultOptions . maxArrayLength = Infinity
6
2
7
3
const data = await jsdoc . explain ( { cache : true , configure : './example/using-config.json' } )
8
4
console . log ( data )
5
+
6
+ /*
7
+ The `using-config.json` file looks like this:
8
+
9
+ {
10
+ "source": {
11
+ "include": [ "example/using-config-input.js" ]
12
+ },
13
+ "opts": {
14
+ "destination": "./config-out/"
15
+ }
16
+ }
17
+ */
Original file line number Diff line number Diff line change 1
1
{
2
- "source" : {
3
- "include" : [ " example/using-config-input.js" ]
4
- },
5
- "opts" : {
6
- "destination" : " ./config-out/"
7
- }
2
+ "source" : {
3
+ "include" : [ " example/using-config-input.js" ]
4
+ },
5
+ "opts" : {
6
+ "destination" : " ./config-out/"
7
+ }
8
8
}
You can’t perform that action at this time.
0 commit comments