praduman-copy
v1.0.0
Published
just copy paste command nothing else
Readme
praduman-copy 📁➡️📂
A lightweight Node.js CLI tool to praduman-copy a file from one location to another directly from the terminal.
Perfect for beginners learning:
- Node.js CLI tools
fs/promisesprocess.argv- npm package publishing
✨ Features
- 📄 praduman-copy files using a single command
- ⚡ Fast and simple
- 🧠 Beginner-friendly codebase
- 🖥 Cross-platform (Windows / Linux / macOS)
- 📦 Modern ES Modules
📦 Installation
Global installation (recommended)
npm install -g praduman-copyLocal testing (development mode)
npm link🚀 Usage
praduman-copy <source-file> <destination-folder>Example
praduman-copy notes.txt D:\backupOutput:
D:\backup\notes.txt📸 Demo
praduman-copy file.txt ./output
✅ File copied successfully❌ Error Handling
| Case | Message |
| -------------- | ------------------------------------- |
| No source file | Error: No source file provided |
| No destination | Error: No destination path provided |
| File not found | ENOENT: no such file or directory |
🛠 How It Works
- Reads CLI arguments using
process.argv - Reads file using
fs.readFile - Writes file using
fs.writeFile - Resolves paths safely using
path.join
📁 Project Structure
praduman-copy/
│
├── index.js # CLI logic
├── package.json # npm configuration
└── README.md🧪 Local Development
git clone <repository-url>
cd praduman-copy
npm linkTest:
praduman-copy test.txt ./test-folder⚠ Notes
- Destination must be an existing folder
- Currently supports file praduman-copy only (folders not yet)
🛣 Roadmap
- [ ] praduman-copy directories recursively
- [ ] Add
--forceflag - [ ] Add
--verbosemode - [ ] Progress indicator
📄 License
ISC
🙌 Author ** Praduman-Gupta
Built with ❤️ while learning Node.js CLI development.
