File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import 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
62
73const data = await jsdoc . explain ( { source : '/** example doclet */ \n var example = true' } )
84console . log ( data )
Original file line number Diff line number Diff line change 11import 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
62
73const data = await jsdoc . explain ( { files : process . argv . slice ( 2 ) , cache : true } )
84console . log ( data )
Original file line number Diff line number Diff line change 11import 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
62
73const data = await jsdoc . explain ( { cache : true , configure : './example/using-config.json' } )
84console . 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 11{
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+ }
88}
You can’t perform that action at this time.
0 commit comments