This repository aims to provide reimplementation of popular Node.js modules, showcasing how they can be used with real examples. In this repo, I will cover the reimplementation of modules: event
and fs
and also you can see usage of buffer
and streams
.
The event
module is a core module in Node.js that allows you to create and handle custom events. In this reimplementation, I have created a simplified version of the event
module.
Feel free to explore the reimplementation and customize it according to your needs.
For more information on the event
module reimplementation, please refer to the README in the events-module
folder.
The fs
module is a core module in Node.js that provides an API for interacting with the file system. In this repository, I have implemented a file commander application that demonstrates various use cases of the fs
module.
The file commander allows you to perform operations such as creating, reading, updating, and deleting files and directories. It also provides functionality for renaming files.
Feel free to explore the file commander and customize it according to your needs.
For more information on the file commander and its usage with the fs
module, please refer to the README in the file-commander
folder.
Streams are a powerful feature in Node.js that allow you to efficiently process and manipulate data. They provide a way to read or write data in chunks, rather than loading the entire data into memory.
In this repository, I also cover the usage of streams. You can find examples and explanations on how to work with streams in the README in the streams
folder. I provide examples of working with streams, including benchmarking and a custom stream implementation.
Feel free to explore the examples and learn how to leverage streams in your Node.js projects.
In addition to the reimplementation of core modules, I also cover networking with Node.js. You can find examples and explanations on how to create a simple TCP server and client in the README in the network
folder.
Feel free to explore the examples and learn how to build networking applications with Node.js.
If you're interested in learning more about the reimplementation of the event
and fs
modules, as well as the usage of buffer
and streams
, here are some resources you can explore:
-
Follow me on LinkedIn for updates and news about the project.
-
Follow me on Telegram for more insights and discussions on Node.js and engineering topics.
-
Check out my articles on Medium (in Uzbek language) for an in-depth analysis of the reimplementation process.
Article links:
- About the buffer. Buffer haqida bilib olamiz (Nodejs)
- About the streams. Stream nima? Nodejsda streamlar bilan ishlash.
- Stream benchmarking. Streamlar bilan benchmarking qilish.
- Custom stream implementation. Custom streamlar yozamiz(Nodejs).
I will be sharing more insights and updates on the reimplementation of Node.js modules, so stay tuned for more content.
If you have any questions or feedback, feel free to reach out to me on LinkedIn or Medium.
I hope you find these resources helpful in understanding and exploring the reimplementation of these modules. Happy coding!
Developed by ❤️ by Ulug'bek Habibov
Don't forget to ⭐ this repository if you find it helpful!