fsx

1.0.2 • Public • Published

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],
}

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i fsx

      Weekly Downloads

      2

      Version

      1.0.2

      License

      none

      Last publish

      Collaborators

      • clux