filemaster
v1.1.1
Published
Filemaster is a simple Node.js CLI tool to manage files using basic commands. It allows you to create, write, read, append, and delete files directly from the terminal.
Maintainers
Readme
Filemaster
Filemaster is a simple Node.js CLI tool to manage files using basic commands.
It allows you to create, write, read, append, and delete files directly from the terminal.
Built as a learning project to practice:
- Node.js
fsmodule - CLI arguments
- readline interface
- File system operations
Features
- Create new files
- Write content into files
- Read file content
- Append content into existing file
- Delete files with confirmation
- Built-in help command
Installation
Clone the repository:
git clone https://github.com/21vedansh/filemaster.git
cd filemasterUsage
Run the CLI using Node:
node index.js <command> <filename>Available Commands
Create a new file:
node index.js create test.txtWrite content into a file: (Type your content and press Enter on an empty line to save)
node index.js write test.txtRead a file:
node index.js read test.txtDelete a file:
node index.js delete test.txtAppend a file:
node index.js append test.txtShow help menu:
node index.js helpFile Storage
All files are automatically stored inside a folder created by the tool:
/files