read-all-up
Read all matching files or directories by walking up parent directories
Install
yarn add read-all-up
Example
const readAllUp = ; ;
API
readAllUp(filename | filename[], [options])
Returns a Promise
for the files.
readAllUp.sync(filename | filename[], [options])
Returns files.
filename
Type: string
Filename of the file to find.
options
cwd
Type: string
Default: process.cwd()
Directory to start from.
encoding
Type: string
Encoding to read the files as.