Tag: node.js

Node.js CVE: Common Vulnerabilities and Exposures

Node.js is an open-source and cross-platform JavaScript run-time environment which is used to develop server-side applications. While Node.js has become increasingly popular among developers, it is also subject to common vulnerabilities and exploits (CVE). In this blog post, we will explore some of the most recent CVEs related to Node.js. Common Vulnerabilities and Exposures Common

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

How to use MySQL in Node.js

Introduction MySQL is a popular open-source relational database management system (RDBMS) that uses Structured Query Language (SQL) for managing and manipulating data. It is one of the most widely used databases in the world, with applications ranging from small-scale web applications to large-scale enterprise systems. MySQL was first released in 1995 by MySQL AB (later

Read more

How to publish a module on NPM?

Introduction Publishing a module on npm (Node Package Manager) allows you to share your code and make it available for others to use in their projects. Here’s a step-by-step guide on how to publish a module on npm: Remember to follow best practices and guidelines for publishing modules on npm, such as adding a license,

Read more

Common Programming Interview Questions and Answers

Introduction So you have a Programming interview coming up and you don’t know where to start? Relax! This guide will take you through the most common Programming interview questions with detailed answers and explanations. By the time you’re finished, you’ll be ready to ace your interview and land the job of your dreams. 1. What

Read more

How to detect memory leaks in Node.js?

Introduction Memory leaks can be a tricky problem to detect and solve, especially in large Node.js applications. A memory leak occurs when an application allocates memory but fails to release it, resulting in a gradual increase in memory usage over time. This can lead to performance issues, crashes, and other problems. Fortunately, there are several

Read more

Common Mistakes Developers Make When Building Apps

Introduction A mobile app is the latest and hottest, way to engage with customers. It can also be a great way to increase revenue and build brand loyalty. But don’t forget – with great power comes great responsibility! If you want your app to be successful, it’s important to avoid common mistakes that can doom

Read more

Timers in Node.js | setTimeout, setInterval and setImmediate

Introduction: Timers module provides a way for scheduling functions to be called after a given time. The Timer object is a global object in Node.js, therefore it’s not necessary to import it using the require() function call. All the methods are available globally to emulate the browser JavaScript API. Timer functions: setImmediate() —–> Executes a

Read more

Building a Node.js Application with MySQL: A Practical Example

Introduction In this tutorial, we will walk through the process of building a Node.js application that interacts with a MySQL database. We will cover the steps from setting up the project to performing operations on the database using the popular mysql package. By the end of this tutorial, you will have a solid understanding of

Read more

How to prevent Node.js applications from XSS attacks

Introduction Cross-Site Scripting (XSS) is a type of security vulnerability that occurs when an attacker is able to inject and execute malicious scripts in a web application. Reflected XSS is a type of XSS attack in which the injected script is reflected back to the user, typically as part of an error message or search

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