How to change npm start script of node.js ?
The script is a list of commands that are used to perform some specific tasks that they are designed to perform. In Node.js there are a lot of predefined scripts created while creating a new project some of them contain a default value, and we can also change them according to our need of the operations for a specific task....
read more
How to Build a Simple Web Server with Node.js ?
Introduction: Node.js is an open-source and cross-platform runtime environment for executing JavaScript code outside a browser. You need to remember that NodeJS is not a framework, and it’s not a programming language. Node.js is mostly used in server-side programming. In this article, we will discuss how to make a web server using node.js....
read more
How to define the required Node.js version in package.json?
To define the required Node.js version in the package.json file we will have to go through few simple steps:...
read more
How to expire session after 1 min of inactivity in express-session of Express.js ?
In this article, we will see how to expire the session after 1 min of inactivity in express-session of Express.js....
read more
How to Create a Directory using Node.js ?
In this article, we will create a directory using NodeJS....
read more
How to Integrate Google Calendar in Node.js ?
Integrating Google Calendar into a Node.js application allows you to create, modify, and manage calendar events programmatically. This can be useful for various applications, such as scheduling software, personal organizers, or any app that needs to manage events. In this article, we will walk through the steps required to integrate Google Calendar in a Node.js application....
read more
How to Download a File using Express.js ?
Express.js  is a routing and middleware framework for handling the different routing of the webpage and it works between the request and response cycle and works on the top of the node.js server. In this article, we will discuss how to download a file using express.js....
read more
Explain about Read and Write of a file using JavaScript
Handling file operations such as reading and writing is a common requirement in many JavaScript applications, especially on the server side using Node.js. This article explains how to perform these operations using Node.js’s built-in fs (File System) module....
read more
How to Get the Full URL in ExpressJS ?
When building web applications with Express.js, a popular framework for Node.js, there are many scenarios where you may need to retrieve the full URL of a request. This is especially useful for tasks like logging requests, generating absolute URLs for redirect responses, or creating links in response data. In this article, we will explore various methods to obtain the full URL in an Express.js application, including the use of built-in methods and constructing URLs manually....
read more
What is Chunk in Node.js ?
In Node.js, the term “chunk” refers to a small, manageable piece of data that is part of a larger dataset. Node.js processes data in chunks, especially when dealing with streams, which makes handling large files or data sources more efficient and memory-friendly. This article explores what chunks are, how they work, and their significance in Node.js....
read more
How to create pagination in Node.js using skip and limit ?
Nodejs is an open-source and cross-platform runtime environment for executing JavaScript code outside the browser. It is widely used in developing APIs and microservices from small to large companies. It is a great tool as this enables developers to use JavaScript both on the server and client sides....
read more
How to access cache data in Node.js ?
Cache: Caching is a technique used for improving the performance of servers and a lot of devices used in day-to-day life.In caching, the result of certain computation or task is stored somewhere, and if the same computation is required again, it is served from that location itself rather than doing the computation again. This reduces computation and improves performance, thereby providing a better user experience.A lot of apps cache data for the first time they’re fired, hence are able to efficiently provide responses. Similarly, the majority of servers have advanced cached mechanisms for endpoints that serve the same response for the majority of the time....
read more