File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ import { fileURLToPath } from 'url';
9
9
import { Package } from './types' ;
10
10
11
11
/**
12
- * Finds package.json from either the directory the script was called from or a supplied path.
12
+ * Finds file in path.
13
13
*
14
- * console.log(await findFileInPath('./'));
15
- * console.log(await findFileInPath('./ package.json'));
16
- * console.log(await findFileInPath('~/git/github/doxdox/'));
14
+ * console.log(await findFileInPath('./', 'package.json' ));
15
+ * console.log(await findFileInPath('../', ' package.json'));
16
+ * console.log(await findFileInPath('~/git/github/doxdox/', '.package.json' ));
17
17
*
18
18
* @param {string } [input] Directory to check for file.
19
19
* @param {string? } [fileName = 'package.json'] File name to check for.
You can’t perform that action at this time.
0 commit comments