Nautilus: Pelagic Mollusc
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    explorepublic

    Walks recursively down the file tree starting from the current directory executing functions on arbitrary file types.

    example

    function log(file) { console.log(file) }
     
    // print the path of json or ruby files 
    explore("json|rb", log);

    It can also accept an array of callbacks and a starting directory

    explore(fileTypes, callbacks, startingPath, errCallback)
    • fileTypes string
    • callbacks function or array of functions
    • startingPath string (absolute)
    • errCallback function where first arg is error

    install

    npm i explore

    Downloadsweekly downloads

    5

    version

    0.2.0

    license

    MIT

    last publish

    collaborators

    • avatar