0.0.5 • Published 1 year ago

fs-tree-structure v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year 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

1 year ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

3 years ago