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
| filepath | string / URL | Initial file or directory path to traverse for `package.json`. |
46
46
|[basepath]| string / URL | Optional: Base path to stop traversing. Set to the root path of `filepath` if not provided. |
47
-
|[callback]| Function | Optional: A function that evaluates a loaded package.json object and associated traversal data returning a truthy value to stops or continue the traversal. |
47
+
|[callback]| Function | Optional: A function that evaluates a loaded package.json object and associated traversal data returning a truthy value to stop or continue the traversal.|
48
48
49
49
`filepath` is required and may be a file or directory path as a string or file URL including `import.meta.url`. It
50
50
should be noted that if the path references a file that this file does not need to exist, but the containing directory
0 commit comments