|
sfcode
An Online Competing and Development Environment
|
Find a file or directory by walking up parent directories
example.js
Returns a Promise for either the filepath or null if it couldn't be found.
Returns a Promise for either the first filepath found (by respecting the order) or null if none could be found.
Returns a filepath or null.
Returns the first filepath found (by respecting the order) or null.
Type: string
Filename of the file to find.
Type: Object
Type: string
Default: process.cwd()
Directory to start from.
require.resolve() but from a given pathMIT © Sindre Sorhus