Month: May 2021

Comparison with NaN in Javascript | isNaN() Function JS

Introduction In this blog post, You will learn about a common JavaScript mistake which most of the developers don’t know. Let’s assume you are doing some string manipulation and it resulted into NaN (Not-a-Number). Suppose you are using Javascript’s parseInt() function as follows: As we know that “Foo” is not a integer value, therefore variable

Read more

Remote Code Injection | Server-Side Template Injection Node.js

Introduction Remote Code Injection is a type of vulnerability that consists of injecting code that is then executed by the web application. This type of atatck happens when untrusted user input is directly executed by application. These types of attacks are usually performed due to a lack of proper input or output data validation. Directly

Read more

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

Please disable your adblocker or whitelist this site!