dirfy-tree
v1.0.1
Published
A developer CLI tool to generate local files and folders from pasted directory trees.
Maintainers
Readme
🌳 dirfy
The fastest way to scaffold folders and files locally by pasting an ASCII directory tree.
dirfy-tree is a modern developer CLI tool that reads a standard directory tree structure (like the output of the tree command) and instantly generates the actual empty folders and files on your machine.
🚀 Installation
You can use dirfy-tree without installing it globally via npx:
npx dirfy-treeOr install it globally:
npm install -g dirfy-tree🛠 Usage
Run the command npx dirfy-tree in your terminal. Paste your tree structure. Press Ctrl+D to generate.
Example Output
/
├── app/
│ ├── api/
│ │ └── route.js # Generates file inside app/api
├── components/
│ └── Button.jsx
└── lib/
└── utils.js⚡ Options
Flag,Description --dry-run,Preview the generated paths without writing anything to disk. --force,Overwrite existing files (default behavior skips existing). --readme,Automatically append the pasted tree to a README.md in the directory. --help,Show the help message.
🤝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
📝 License
This project is MIT licensed.
