This project is a node js console application that demonstrates various file handling operations. It shows how to read, write, edit, rename and delete files using the built-in fs
module. It also uses readStream and writeStream to process large files in chunks, which improves performance and memory usage. Additionally, it includes a file init that creates and deletes directories using the fs.mkdir and fs.rmdir method
Main features:
- File handling operations using the
fs module
- Read and write large files in chunks using streams
- Create directories using the
fs.mkdir
method - Delete directories using the
fs.rmdir
method - Error handling and logging using the console module
To get a local copy up and running, follow these steps.
To run this project, you need the following prerequisites:
- Node.js installed on your system
- A text editor or IDE of your choice
- A terminal or command prompt
To set up the project, follow these steps:
- Clone or download the project repository from GitHub
git clone https://github.com/shella12/File_handling_Node.git
- Navigate to the project folder in your terminal or command prompt
- Run npm install to install the dependencies
To run the project, follow these steps:
- In your terminal or command prompt, run
node filename
for examplenode server.js
to start the application - Follow the instructions on the console to perform various file handling operations
- To exit the application, press Ctrl+C
- GitHub: @shella12
- Twitter: @Ayesha Arshad
- LinkedIn: Ayesha Arshad
- Add console UI
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project give it a star ๐
This project is MIT licensed.