Simple recursive file and directory reader using synchronous node fs calls
Just a small utility that I had to copy for many of my modules. Will scan a directory recursively, keep track of both files and directories, and return two flattened arrays.
npm install fsx
var fsx = require'fsx';var output = fsxreadDirSyncdir;
console.logoutput;->dirs: pathstodirsfiles: paths to files