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
+1-2
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,7 @@ var list = dependencyTree.toList({
41
41
*`visited`: object used for avoiding redundant subtree generations via memoization.
42
42
*`nonExistent`: array used for storing the list of partial paths that do not exist
43
43
*`filter`: a function used to determine if a module (and its subtree) should be included in the dependency tree
44
-
- The function should accept an absolute filepath and return a boolean
45
-
- If the filter returns true, the module is included in the resulting tree
44
+
- The first argument given to the filter is an absolute filepath to the dependency and the second is the filepath to the currently traversed file. Should return a `Boolean`. If it returns `true`, the module is included in the resulting tree.
46
45
*`detective`: object with configuration specific to detectives used to find dependencies of a file
47
46
- for example `detective.amd.skipLazyLoaded: true` tells the AMD detective to omit inner requires
48
47
- See [precinct's usage docs](https://github.com/dependents/node-precinct#usage) for the list of module types you can pass options to.
0 commit comments