Introduction Useful when converting a list of file names into a nested UL/LI tree. Perfect for site maps, and directory listings. Provide a list of file names: blog/all.html blog/2036/overflows.html And recieve a directory-like tree: blog all.html 2036 overflows.html Installation Install it with NPM: npm install --save treeify-paths Import with modern syntax: import treeifyPaths from "treeify-paths"; Or if you are not using NPM, install the library by downloading the source file directly and including it in your project: