Filesystem Tree Structure Builder

JSON →
library 0.0.5 ·javascript
verified May 27, 2026

fs-tree-structure is a lightweight JavaScript/TypeScript utility designed to transform a flat list of file paths into a nested JavaScript object representing a directory tree structure. As of its current stable version, 0.0.5, it provides a single, focused function `makeTreeStructure` to perform this transformation. Due to its specific utility and low version number, its release cadence is likely stable but infrequent, implying minimal updates once its core functionality is mature. Key differentiators include its simplicity and direct focus on in-memory tree generation from string-based path arrays, rather than actual file system interaction. It includes TypeScript type definitions, ensuring type safety for TypeScript projects. The output is a plain JavaScript object, making it easily consumable by other parts of an application for purposes like documentation generation, build process analysis, or mock file system creation, providing a programmatic representation of a hierarchical file structure from flat input.

total hits 17
actors 9 distinct systems
last hit 4d ago AhrefsBot
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · HK · 🇫🇷 France