Category: Node.js

Node.js Tutorial

How to rename file in Node.js? fs.rename() Node.js

Introduction In this blog post, we will learn how to rename a file in Node.js using fs module. fs mdoule provides various synchronous and asynchronous APIs to rename files. Let’s get start. fs.rename() The fs.rename() is used to asynchronously rename a file at the given old path to provided new path. In the case that a new

Read more

SQL Injection Attack

Introduction: An SQL injection attack is a type of code injection attack wherein attackers can execute malicious SQL code to manipulate databases or disclose sensitive information. SQL injection attacks can be used to steal data, modify data, or even delete data. SQL Injection Attack: To demonstrate an example of a SQL injection attack, consider the

Read more

DNS module in Node.js

Introduction: DNS module is a core module of Node.js that provides developers with an interface to the Domain Name System (DNS). It allows you to do things like get and set DNS records, as well as resolve hostnames and IP addresses.  The DNS module is important because it helps you communicate with name servers around

Read more

HTTP Rest Client in Node.js: Everything You Need to Know

In a world where everything is interconnected, the network has become one of the most important pieces of infrastructure in our lives. And within that network, APIs have become one of the most valuable resources we have.  APIs are how businesses expose their internal data and functionality to the outside world, so any developer who

Read more

How to Create an HTTPS Server in Node.js

Introduction: HTTPS stands for “HyperText Transfer Protocol Secure” and is an encrypted version of the HyperText Transfer Protocol (HTTP) used to access web pages. HTTPS is used to ensure that the communication between the web server and the client (your web browser) is secure and private. It does this by encrypting the data that is

Read more

RSS reader in Node.js

Introduction: An RSS (Really Simple Syndication) feed is an online file that contains information about every piece of content a website has published. The information includes a summary, content, publication date, author, publisher name, link and other metadata. Almost every news website provides its RSS feed which can be integrated in other websites. Generally, an

Read more

File System Module in Node.js

The File System (FS) module of Node.js is a powerful tool for developers who need to manage files and directories in their applications. This module provides a way to create, read, write, and delete files and directories with a few lines of code. Furthermore, this module also provides ways to manipulate the data associated with

Read more

Unvalidated Redirects and Forwards | Server-side URL Redirect

Introduction Unvalidated Redirects and Forwards also called as URL Redirection or Server-side URL Redirect is a type of vulnerability found in most Web Applications. This vulnerability can be found in Java, Node.js, Python, PHP, Ruby, .NET and many more.  Unvalidated redirects and forwards occurs when a web application receives untrusted input in an HTTP request that could

Read more

Reflected XSS attack | How to prevent XSS attack in Node.js

Introduction In this blog post, I will explain to you about the Reflected XSS attack. Reflected cross-site scripting (XSS) occurs whenever an application takes untrusted data and sends it to a web browser without proper validation or escaping. Reflected cross-site scripting (XSS) allows attackers to execute scripts in the victims’ browser, which can access any

Read more

Setup Express project in Node.js

Introduction: Express is one of the most widely used web application framework of Node.js. Almost every beginner creates his/her first web application in experss. Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications. expressjs.com This article shows how you can create a

Read more

Please disable your adblocker or whitelist this site!

How to whitelist website on AdBlocker?

How to whitelist website on AdBlocker?

  1. 1 Click on the AdBlock Plus icon on the top right corner of your browser
  2. 2 Click on "Enabled on this site" from the AdBlock Plus option
  3. 3 Refresh the page and start browsing the site