0.0.5 • Published 3 months ago

fs-tree-structure v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

fs-tree-structure builds a filesystem tree structure from a list of flat paths.

const filePaths = ["lib/feature/index.js", "lib/feature/util/index.js"];

const treeStructure = makeTreeStructure(filePaths);

assert.deepEqual(treeStructure, {
  lib: {
    feature: {
      "index.js": {},
      util: {
        "index.js": {}
      }
    }
  }
});
0.0.5

3 months ago

0.0.4

5 months ago

0.0.3

7 months ago

0.0.2

8 months ago

0.0.1

2 years ago