Skip to content

Tag Archives: NodeJS-Questions

There are so many ways to store data for better understanding for individual purposes, in few cases, JSON files will be more suitable in few… Read More
In this article we will see how to generate PDF document in NodeJS. Prerequisites: Basic knowledge of Node.js. Node.js installed (version 12+). npm installed (version… Read More
In this article, we will discuss how to display images using handlebars in Node.js. You may refer to this article for setting up handlebars View… Read More
Node.js 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… Read More
Most of the popular browsers today automatically handle the display of raw data output from API on the Web interface. To do this we just… Read More
Node.js supports modules and packages that can be installed using NPM, which allows us to exploit various functionalities. One such functionality is syntax highlighting using… Read More
The following approach covers how to pass/access node.js variable to an HTML file/template. We will build a basic Node.js application that will let you show… Read More
We are going to use the query function in MySQL library in node.js that will return our output as expected. Using this approach, we can… Read More
In this article I’m showing you how to redirect users using ExpressJS. First of all, when you want to redirect the user? Here are some… Read More
JPG and PNG both are widely used image formats. Using these formats allows the user to contain and use digital images. In this article, we… Read More
In this article, we will be working with forms using ExpressJS in NodeJS. Using server side programming in Node.js, we can create forms where we… Read More
Node.js with the help of Express, supports web page routing. This means that when the client makes different requests, the application is routed to different… Read More
Rate limiting prevents the same IP from making too many requests that will help us prevent attacks like brute force. The express-rate-limit is the npm… Read More
Task: To find the size of the given string in bytes. Example: Input: "GeeksForGeeks" Output: 13 bytes Input: 20€ Output: 5 bytes Input: "????" Output:… Read More
In this article, we will return an array of lines from a specified file using node.js. The fs module is used to deal with the… Read More