fsx
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.
Install with
npm install fsx
then
var fsx = ;var output = fsx;
yielding:
console;-> dirs: pathstodirs files: paths to files