Category: 01. Tutorial

  • NestJS

    Welcome to the tutorial of NestJS. This tutorial is solely intended to make you gain absolute knowledge of NestJS. You would be learning about it from a beginner level covering all the tiny staircases that will push you into installation, creating a new application from NestJS from scratch, and learn how to handle and implement in…

  • Node.js Web Module

    What is Web Server Web Server is a software program that handles HTTTP requests sent by HTTP clients like web browsers, and returns web pages in response to the clients. Web servers usually respond with html documents along with images, style sheets and scripts. Most of the web server support server side scripts using scripting…

  • Node.js TTY

    The Node.js TTY module contains tty.ReadStream and tty.WriteStream classes. In most cases, there is no need to use this module directly. You have to use require (‘tty’) to access this module. Syntax: When Node.js discovers that it is being run inside a TTY context, then:PauseNextMute Current Time 0:05 / Duration 18:10 Loaded: 4.04%  Fullscreen To check that if…

  • Node.js Punycode

    What is Punycode Punycode is an encoding syntax which is used to convert Unicode (UTF-8) string of characters to basic ASCII string of characters. Since host names only understand ASCII characters so Punycode is used. It is used as an internationalized domain name (IDN or IDNA). Let’s understand it with an example: Assume if you…

  • Node.js Events

    In Node.js applications, Events and Callbacks concepts are used to provide concurrency. As Node.js applications are single threaded and every API of Node js are asynchronous. So it uses async function to maintain the concurrency. Node uses observer pattern. Node thread keeps an event loop and after the completion of any task, it fires the…

  • Node.js Callbacks

    Callback is an asynchronous equivalent for a function. It is called at the completion of each task. In Node.js, callbacks are generally used. All APIs of Node are written in a way to supports callbacks. For example: when a function start reading file, it returns the control to execution environment immediately so that the next…

  • Node.js V8

    What is V8 V8 is an open source JavaScript engine developed by the Chromium project for the Google Chrome web browser. It is written in C++. Now a days, it is used in many projects such as Couchbase, MongoDB and Node.js. V8 in Node.js The Node.js V8 module represents interfaces and event specific to the…

  • Node.js Assertion Testing

    The Node.js Assert is the most elementary way to write tests. It provides no feedback when running your test unless one fails. The assert module provides a simple set of assertion tests that can be used to test invariants. The module is intended for internal use by Node.js, but can be used in application code…

  • Node.js ZLIB

    The Node.js Zlib module is used to provide compression and decompression (zip and unzip) functionalities. It is implemented using Gzip and deflate/inflate. The zlib module can be accessed using: Compressing and decompressing a file can be done by piping the source stream data into a destination stream through zlib stream. Node.js ZLIB Example: Compress File…

  • Node.js Query String

    The Node.js Query String provides methods to deal with query string. It can be used to convert query string into JSON object and vice-versa. To use query string module, you need to use require(‘querystring’). Node.js Query String Methods The Node.js Query String utility has four methods. The two important methods are given below. Method Description querystring.parse(str[,…