How to use the fs-readdir-recursive.reduce function in fs-readdir-recursive

To help you get started, we’ve selected a few fs-readdir-recursive examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ebdrup / json-schema-benchmark / testRunner.js View on Github external
function readTests(dirpath) {
  return require("fs-readdir-recursive")(dirpath).reduce(function(acc, value) {
    return acc.concat(require(path.join(dirpath, value)));
  }, []);
}

fs-readdir-recursive

Recursively read a directory

MIT
Latest version published 7 years ago

Package Health Score

71 / 100
Full package analysis

Popular fs-readdir-recursive functions

Similar packages