ascend-and-find

0.1.3 • 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

/ascend-and-find/

    Package Sidebar

    Install

    npm i ascend-and-find

    Weekly Downloads

    1

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    2.74 kB

    Total Files

    4

    Last publish

    Collaborators

    • x82-softworks