1.0.2 • Published 12 years ago
fsx v1.0.2
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 = require('fsx');
var output = fsx.readDirSync(dir);
yielding:
console.log(output);
->
{
dirs: [pathstodirs],
files: [paths to files],
}