A class is a concept of Object Oriented Programming(OOP). Object Oriented Programming is an essential concept in programming, it helps to reduce the difficulty of scaling the application. It provides a way to concatenate various method and property to ... more
Node.js includes various global objects used to perform different operations. Global objects are global in nature, they can be used anywhere directly. One of the widely used global objects is the console object which is used literally in every Node.js ... more
ZLIB is a Node.js module that is used to zip and unzip files. It is not required to install this module to use it inside the application, it is a pre-build module so it can be used directly by requiring it inside the application. Syntax: Compressing or ... more
Keywords are reserved words, which can’t be used as a variable, label, or function name. The keywords have their operation and perform in a certain way to provide different functionality. Most Common NodeJS Keywords There are many keywords in Node.js, ... more
The function is the key fundamental of programming languages, it is used to combine different expressions and instruct them to perform certain operations. A function makes the overall structure of the program better by providing a feature to group certain ... more
The file system is used to interact with the files. Operations like creating, reading, and deleting files are done using File System in Node.js. Node.js File System is an inbuilt module that we can import inside our project directly to use it. It is not ... more
Node.js is a JavaScript runtime that allows you to write JavaScript for creating back-end services. We can create services like APIs, Web App even Mobile App using it. Many big companies use Node.js to build their application such as Netflix, PayPal, ... more
If you own or operate a company, you’ve probably had to deal with the hassle of validating value-added tax (VAT) identification numbers (IDs) for your international customers. It’s a necessary step to ensure you’re correctly charging customers from different ... more
With the Web3 economy starting to take off in a big way, an increasing number of people across the globe are looking for ways through which they can tap into this future-ready digital ecosystem. In its most basic sense, Web3 can be thought of as a set ... more
In this guide, I will discuss how to get the timestamp in Nodejs in its different forms. We can use timestamps in our applications to, for instance, inform users about when an activity was performed. In this guide, I will give you a walkthrough on how ... more
The conflict between Nodejs vs Django as backend technologies has raged on for decades. Django is a Python programming language framework. Nodejs is also a JavaScript programming language framework. Django is a well-known technology with a large community. ... more
In this tutorial, I will walk you through an easy step-by-step guide on how to uninstall Nodejs from Windows 10. Here are different ways to uninstall Nodejs from Windows 10. How to Check if Nodejs is Installed? Here are steps to check if you have Nodejs ... more
This blog will discuss how to use findOneAndUpdate in MongoDB using Nodejs. When creating an application, you might want to allow users to make changes on a few things using the frontend that live inside your MongoDB database. Or, you might also want ... more
In this tutorial, I am going to explain how you can remove a field completely from a MongoDB document with help of the Mongoose ODM in a Nodejs application. Developing an application or maybe learning to develop one involves a lot of trying and testing. ... more
Check out the full session lineup for SnykCon, a free, virtual conference for developers – focused on helping teams build securely. Learn how to build security into your existing workflows in 100+ sessions, including:– Never Get Pwned! Understanding the ... more
In this tutorial, I am going to cover something of utmost importance: Callbacks in Nodejs. Callbacks in Nodejs lay its foundation. When comparing a code for an operation with plain JavaScript, it might seem unnecessarily complicated. I will cover some ... more
In this tutorial, I am going to walk you through the easiest ways to install and set up Postgres with Nodejs on Windows. If you always wanted a PostgreSQL database integrated into your Nodejs project but didn’t know how, this tutorial is the right place ... more
In this article, we’ll learn about appending to files in Nodejs. Lately, we have been talking a lot about files and their reading and writing and whatnot. Well, I am back with yet another Nodejs tutorial for you, this time on appending/adding changes ... more
This is yet another comparison guide of Nodejs. Today it’s the fight between Nodejs vs Go Language. If you want to read a comparison guide between Nodejs vs Python or Nodejs vs PHP, you can click the links. Modern-day developers have a wide range of programming ... more
This tutorial talks about Buffers in Nodejs. Remember we talked about streams? Well, that was a biggy, even got me writing a Part 2 for them! Go ahead and read them: Part 1 and Part 2. And if you already understand what Streams are, you’re all set, mi ... more
In this beginner Nodejs tutorial, I am going to walk you through the Nodejs REPL. The Nodejs REPL comes together when installing Nodejs. I found many questions about the Nodejs REPL on Stack Overflow and elsewhere on the web, so I decided to write a nice ... more
As I promised you all, I have come back with yet another method from the file system module i.e. how to copy files with Nodejs. And as I always say, the fs or file system module is really vast and one of the most important built-in modules in Node.js. ... more
It’s time for a comparative study between the two most powerful backend technologies; Nodejs vs PHP. A few posts back, I conducted a comparative study on Node.js and Python if you’re interested in Python. But let’s get to our topic of today! PHP and Node.js ... more
Let’s continue with our discussion on Streams in Nodejs. In the second part of our tutorial on streams, we will be learning to work with streams in our Node.js projects. You would get a better understanding of what we’re talking about here if you have ... more
In this Node.js tutorial, I will walk you through setting up TypeScript in your Node.js projects. What is TypeScript? TypeScript is an open-source programming language designed as a superset of JavaScript and adds capabilities to the language. It is developed ... more
NodeJS path module is a core built-in module. It provides functionalities for accessing and interacting with files. It provides users a way of working with file paths and directories. Since it is a core module, you do not need to install it. However, ... more
Writing files in Node.js is yet another common basic task, developers need to about and carry out on a regular basis. Fortunately, this task has been made easy with the help of one of Node’s core built-in modules which we are talking about today. Node.js ... more
Reading files in Node.js is a very common programming task carried out by Node developers. Node’s core API makes it even easier to do it. File reading in Node.js can be accomplished through the core built-in fs module, also known as the File System module. ... more
Modules in Node.js are very important. In Node.js each file is considered as a module. It makes use of the CommonJS module system namely NodeJS require, exports, and import. Node modules help us developers reuse our code. With help of the Node Package ... more
Before we dive into the thrilling world of setting up real-time communication in NodeJS using WebSockets, let us first understand what exactly is real-time communication in brief. Real-time communication on the web allows us to get and add resources on-demand, ... more