create-instant-file-structure
v1.0.3
Published
A CLI tool to generate file/folder structure from indented text input
Downloads
31
Maintainers
Readme
📁 create-instant-file-structure
A simple CLI tool that generates files and folders from a tree-like text structure.
Perfect for bootstrapping project directories fast from a single paste.
📦 Installation
npm install -g create-instant-file-structure🚀 Usage
create-structurePaste a structure like this into the terminal:
/project
/src
index.js
app.js
/public
index.html
README.md
package.jsonThen press Ctrl+D (Linux/macOS) or Ctrl+Z then Enter (Windows) to finish input.
It will create this exact structure in your current directory.
✅ Example
create-structure📥 Paste your structure below (Ctrl+D to finish):
/my-app
/components
Header.js
Footer.js
/styles
main.css
index.js
package.json✔️ Output:
📁 Created: ./my-app
📁 Created: ./my-app/components
📄 Created: ./my-app/components/Header.js
📄 Created: ./my-app/components/Footer.js
📁 Created: ./my-app/styles
📄 Created: ./my-app/styles/main.css
📄 Created: ./my-app/index.js
📄 Created: ./my-app/package.json🛠 Features
- Create folder/file trees from pasted input
- Auto-detects indentation levels
- Adds visual feedback with icons and colors (via
chalk) - Lightweight and fast
⚠️ Notes
- Folders must start with a
/ - Indentation must be 2 spaces per level
- Files don’t need slashes
🧑💻 Contributing
Pull requests and feedback are welcome!
📄 License
MIT
