Category: Node.js

Node.js Tutorial

How to generate Unique ID in Node.js? Generate UUID in Node.js

Introduction: A universally unique identifier (UUID) is a 128-bit label used for information in computer systems. If you are a developer and you want to make any entity unique in your application then UUID is the best choice. Generating a UUID in Node.js is very simple. With help of a third-party library, it is possible. UUID is created by Cryptographically-strong

Read more

How to use fs.createReadStream

Introduction In this blog post, you will lean how to use fs.createReadStream() method in your Node.js application. The createReadStream() method is an inbuilt API of fs module which allows you to open up a readable stream( file/stream )and read the data present in it. Syntax This method accept two parameters as described below: path: The path of the

Read more

Node.js Security – Your Guide to Secure Node Development

Node.js is an open-source, cross-platform runtime environment for developing server-side applications. It uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Due to its popularity, Node.js is a frequent target of cyber attacks. In this blog post, we provide a Node.js security checklist to help you secure your Node development environment and protect

Read more

HTTP Status Codes: A Comprehensive Guide

HTTP status codes are the result of an HTTP request. They tell you whether everything went well or not. In this comprehensive guide, we will cover all HTTP status codes and what they mean for your website. What are HTTP status codes?  HTTP status codes are a way of indicating the response of a request

Read more

How to create symlinks in Node.js? Symbolic link with Node.js

Introduction A symbolic link (also symlink or soft link) is a term for any file that contains a reference to another file or directory in the form of an absolute or relative path. Node.js built-in fs module provides APIs to create symlink. fs.symlink() method is used to create a symlink to the given path asynchronously. fs.symlinkSync() method is used to

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

Body-Parser middleware in Express

Introduction: Body-parser is a Node.js body parsing middleware for Express. It is responsible for parsing the incoming request bodies in a middleware before your handlers, available under the req.body property. It provides four express middleware for parsing JSON, Raw, Text and URL encoded form data. You can install body-parser in your Express application by running

Read more

How to resolve a hostname to an IP address in Node.js?

Introduction: Have you heard about DNS? If you know about DNS then you have solved your half problem. DNS which is Domain Name System is a telephone directory for the Internet. Every domain like facebook.com, google.com etc belongs to an IP address.  DNS translates domain names to IP addresses so browsers can load Internet resources.

Read more

Promise returning undefined in Node.js | async function Node.js

Introduction How to resolve a promise in Node.js? This is a very basic programming technique for a JavaScript developer in Node.js. In this blog post, you will learn best practices to use the result of asynchronous functions. What is the impact of not using await in Node.js. In Node.js, async function always returns a promise object. To

Read more

How to do HTTP Requests in Node.js? Node.js Rest Client

Introduction: HTTP requests are an integral part of web development. Node.js is a powerful JavaScript-based platform built on Google Chrome’s JavaScript V8 engine. It is used to build fast, scalable and concurrent web applications. This tutorial covers how to make HTTP requests in Node.js. HTTP request client in Node: Node.js provides the http module which

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