{"id":30181239,"url":"https://github.com/makcoder-2004/file-commander-application","last_synced_at":"2025-08-12T08:07:50.104Z","repository":{"id":305516458,"uuid":"1023089722","full_name":"MakCoder-2004/File-Commander-Application","owner":"MakCoder-2004","description":"The File Commander Application is a lightweight Node.js tool that helps users manage text files through simple commands written in a command.txt file. It watches this file and performs operations like creating, deleting, renaming, and appending to files whenever the file content changes.","archived":false,"fork":false,"pushed_at":"2025-07-20T14:05:20.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-20T16:05:25.443Z","etag":null,"topics":["filesystem","javascript","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MakCoder-2004.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-20T14:01:28.000Z","updated_at":"2025-07-20T14:05:23.000Z","dependencies_parsed_at":"2025-07-20T16:05:31.005Z","dependency_job_id":"34865f5d-afa7-4db9-a50b-bfe08db58d92","html_url":"https://github.com/MakCoder-2004/File-Commander-Application","commit_stats":null,"previous_names":["makcoder-2004/file-commander-application"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/MakCoder-2004/File-Commander-Application","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MakCoder-2004%2FFile-Commander-Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MakCoder-2004%2FFile-Commander-Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MakCoder-2004%2FFile-Commander-Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MakCoder-2004%2FFile-Commander-Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MakCoder-2004","download_url":"https://codeload.github.com/MakCoder-2004/File-Commander-Application/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MakCoder-2004%2FFile-Commander-Application/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270024697,"owners_count":24514054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["filesystem","javascript","nodejs"],"created_at":"2025-08-12T08:07:40.247Z","updated_at":"2025-08-12T08:07:50.078Z","avatar_url":"https://github.com/MakCoder-2004.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📂 File Commander Application\n\nA simple file management CLI application built using Node.js.\nIt reads commands from a `command.txt` file and performs file operations like:\n\n* ✅ Create a file\n* ✅ Delete a file\n* ✅ Rename a file\n* ✅ Append text to a file\n\n---\n\n## 📦 Requirements\n\n* Node.js v14+ (tested on Node.js v22)\n* A terminal/console\n* A `command.txt` file in the root directory\n\n---\n\n## 🚀 How to Run\n\n1. Clone or download the repository.\n2. Make sure your terminal is in the project directory.\n3. Run the application:\n\n```bash\nnode app.js\n```\n\n4. Modify the `command.txt` file to issue commands (examples below).\n5. The app will automatically detect changes and execute the command.\n\n---\n\n## ✍️ How It Works\n\n* The app continuously watches the `command.txt` file.\n* Whenever the file changes, it reads the new command.\n* It identifies the action and performs the corresponding file operation.\n\n---\n\n## 📘 Supported Commands\n\n### ✅ Create a file\n\n```\ncreate file filename.txt\n```\n\n**Example:**\n\n```\ncreate file notes.txt\n```\n\n---\n\n### ❌ Delete a file\n\n```\ndelete file filename.txt\n```\n\n**Example:**\n\n```\ndelete file notes.txt\n```\n\n---\n\n### 🖁 Rename a file\n\n```\nrename file oldname.txt -\u003e newname.txt\n```\n\n**Example:**\n\n```\nrename file notes.txt -\u003e archive.txt\n```\n\n---\n\n### ➕ Append text to a file\n\n```\nappend to file filename.txt -\u003e text to append\n```\n\n**Example:**\n\n```\nappend to file archive.txt -\u003e This is appended content.\n```\n\n---\n\n## 📂 Project Structure\n\n```\nFile Commander Application/\n│\n├── app.js           # Main application file\n├── command.txt      # File where you write your commands\n└── README.md        # This file\n```\n\n---\n\n## 🛠 Future Improvements\n\n* Add support for updating specific lines in a file\n* Add command history logging\n* Support reading file contents and displaying them in the console\n\n---\n\n## 🧑‍💻 Author\n\nMakrious Ayman Riad\n[LinkedIn](https://www.linkedin.com/in/makrious-ayman-84985621b/)\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakcoder-2004%2Ffile-commander-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakcoder-2004%2Ffile-commander-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakcoder-2004%2Ffile-commander-application/lists"}