Category: Node.js

Node.js Tutorial

OS module in Node.js

Introduction In this blog post, we will learn how can you use Node.js core module to get os specific Information. In the early days of JavaScript, it was just a client-side language but after the introduction of Node.js, it has become a server-side language as well. If you are building your web application by using

Read more

NoSQL Injection attack in Node.js

Introduction: NoSQL injection is a type of security vulnerability that occurs in web applications that use NoSQL databases, such as MongoDB, and is caused by improper input validation. The vulnerability allows attackers to inject malicious code into the queries that an application sends to the database, leading to unauthorized data access or data modification. In

Read more

How to identify memory leaks in Node.js?

Introduction: Memory leaks can be difficult to diagnose in Node.js because they can occur gradually over time and cause the application to consume more and more memory. Here are some steps you can take to identify memory leaks in Node.js: By following these steps, you can identify and diagnose memory leaks in your Node.js application,

Read more

OWASP Top 10 Vulnerabilities and its mitigations

Introduction: There is no one-size-fits-all answer to information security, but understanding the most common threats is a good place to start. The Open Web Application Security Project (OWASP) releases an annual report identifying the Top 10 vulnerabilities found in web applications. This year’s report covers dangers such as injection flaws, broken authentication and session management,

Read more

Javascript Interview Questions and Answers

JavaScript is an important language in the world of web development and programming. It is used to create interactive effects within web browsers, allowing users to take more control over their browsing experience. If you’re preparing for a job interview that involves JavaScript, it’s important to know the basics of the language and be familiar

Read more

Express Middleware: What and how to create middleware

Introduction: The Express middleware is a powerful tool for creating web applications in Node.js. It allows developers to quickly and easily add functionality to their applications by using a variety of pre-built functions. In this blog post, we will explore Express middleware and look at how to create custom middleware functions. Middleware is a function

Read more

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

How to append to a file in Node.js?

Introduction: In this blog post, We will learn how to append contents to the end of the file instead of overwriting the file’s content. Sometimes it is necessary to keep the previous content of a file for debugging purposes. For example, if you are logging into a file then in this case you don’t want

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

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