@x82-softworks/ascend-and-find

0.1.4 • Public • Published

ascend-and-find

A module that recursively searches upwards to find a file or directory

Installing

npm i --save ascend-and-find

Usage

import ascendAndFind from 'ascend-and-find';


///...

try {
//Current working directory, and filename
let {dir, path, stats} = await ascendAndFind(__dirname,'fileTo.find');
//Returns the directory found in, the exact path string and the stat of the file

} catch (err) {
    //File was not found
}

Licence

MIT

Readme

Keywords

Package Sidebar

Install

npm i @x82-softworks/ascend-and-find

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

2.75 kB

Total Files

4

Last publish

Collaborators

  • x82-softworks