Explain Event-Driven Programming in Node.js
Event-driven programming lies at the core of Node.js, defining its asynchronous nature and facilitating efficient handling of I/O operations. This article provides an in-depth explanation of event-driven programming in Node.js, its key concepts, and practical applications....
read more
Node.js Moment Module
The moment module is used for parsing, validating, manipulating, and displaying dates and times in JavaScript....
read more
How to create HTTPS Server with Node.js ?
The HTTP protocol is one of the most important protocols for smooth communication between the networks but in the HTTP protocol, data is not encrypted so any sensitive information can be sniffed during the communication so there is another version of the HTTP i.e HTTPS that encrypts the data during the transmission between a browser and the server. In this article, we will discuss how we can create an HTTPS server using Node.js....
read more
What is Buffer in Node.js ?
Pure JavaScript is great with Unicode-encoded strings, but it does not handle binary data very well. It is not problematic when we perform an operation on data at the browser level but at the time of dealing with TCP stream and performing a read-write operation on the file system is required to deal with pure binary data....
read more
Difference between spawn() and fork() methods in Node.js
Node.js provides several ways to create child processes, enabling you to run tasks in parallel and leverage multi-core systems efficiently. Two commonly used methods for this purpose are spawn() and fork(). While they might seem similar, they serve different purposes and have distinct features. This article will explore the differences between spawn() and fork() in Node.js....
read more
How to Access HTTP Cookie in Node.js ?
Cookies are small pieces of data sent by a server and stored on the client side, typically in the user’s browser. They are often used to maintain stateful information such as user sessions, preferences, or tracking data. In Node.js, accessing and managing cookies is a common requirement for building web applications. This article will guide you through the process of accessing HTTP cookies in Node.js using popular modules like cookie-parser and native methods....
read more
How to Manage Users in Socket.io in Node.js ?
Socket.IO is a library that enables real-time, bidirectional, and event-based communication between the browser and the server. Managing users in Socket.io and Node.js typically involves handling user connections, disconnections, and broadcasting messages to specific users or groups of users...
read more
MongoDB lookup using Node.js
The $lookup operator is an aggregation operator or an aggregation stage, which is used to join a document from one collection to a document of another collection of the same database based on some queries. Both the collections should belong to the same databases....
read more
How to Run a Node.js App as a Background Service ?
Running a Node.js application as a background service is a common requirement for ensuring that your app stays running even after you log out, or if the system restarts. This can be particularly important for server-side applications, APIs, or any long-running processes. This article explores several methods to run a Node.js app as a background service, including using systems on Linux, PM2 process manager, and creating a Windows service....
read more
Reading Path Parameters in Node.js
Path parameters are an essential part of RESTful APIs, allowing the server to capture values from the URL and use them in request handling. This capability is crucial for creating dynamic and flexible endpoints. In Node.js, especially when using frameworks like Express.js, handling path parameters is straightforward and efficient. In this article, we’ll explore how to read path parameters in Node.js and use them in your applications....
read more
Difference between Node.js and AngularJS
AngularJS is a Javascript open-source front-end framework that is mainly used to develop Single Page Applications(SPAs). It is a continuously growing and expanding framework which provides better ways for developing web applications. It changes the static HTML to dynamic HTML.  It is an open-source project which can be freely used and changed by anyone. It extends HTML attributes with Directives, and data is bound with HTML....
read more
Node.js process.kill() Method
The process.kill( pid[,signal] ) is an inbuilt method of node.js which sends a signal to the process, pid (which is the process id) and signal is in the string format that is the signal to send....
read more