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: lib/node_modules/@stdlib/_tools/static-analysis/js/summarize-file-list/README.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ var analyze = require( '@stdlib/_tools/static-analysis/js/summarize-file-list' )
47
47
Performs a static [summary analysis][@stdlib/_tools/static-analysis/js/incr/program-summary] for a list of JavaScript files.
48
48
49
49
```javascript
50
-
var files = [ './beep.js', './boop.js' ];
50
+
var files = [ '/foo/bar/beep.js', '/foo/bar/boop.js' ];
51
51
52
52
functionclbk( error, results ) {
53
53
if ( error ) {
@@ -58,7 +58,6 @@ function clbk( error, results ) {
58
58
59
59
analyze( files, clbk );
60
60
// throws <Error>
61
-
62
61
```
63
62
64
63
The function accepts the following `options`:
@@ -68,7 +67,7 @@ The function accepts the following `options`:
68
67
By default, the function performs a cumulative static [summary analysis][@stdlib/_tools/static-analysis/js/incr/program-summary]. To return a separate [program summary][@stdlib/_tools/static-analysis/js/program-summary] for each file in `files`, set the `cumulative` option to `false`.
69
68
70
69
```javascript
71
-
var files = [ './beep.js', './boop.js' ];
70
+
var files = [ '/foo/bar/beep.js', '/foo/bar/boop.js' ];
72
71
73
72
var opts = {
74
73
'cumulative':false
@@ -91,7 +90,7 @@ analyze( files, opts, clbk );
91
90
Synchronously performs a static [summary analysis][@stdlib/_tools/static-analysis/js/incr/program-summary] for a list of JavaScript files.
92
91
93
92
```javascript
94
-
var files = [ './beep.js', './boop.js' ];
93
+
var files = [ '/foo/bar/beep.js', '/foo/bar/boop.js' ];
0 commit comments