The stunning features of Nodejs



Nodejs Features #1: MODULES

Modules are plain JavaScript files that contain a bundle of codes for a specific purpose. The module pattern helps your code to navigate and works in an easier manner. Even to use such module properties, you need to import from the JavaScript file like we import a package in a Java class.

There are two types of modules in Nodejs.

Core Modules — These are the modules that are pre-compiled with the Nodejs library. Moreover, the main purpose of the core modules is to avoid repeating the code sections. This helps developers to code neatly without errors.

Nodejs Features #2: ASYNC HOOKS

Async Hooks is a feature that comes with new Nodejs updates. This feature of Nodejs gigs and pulls out a huge amount of analytical data about the process. The async_hooks module gives an API to register its callbacks tracking. Such a lifetime of asynchronous resources created inside a Nodejs application.


The NPM (Node Package Manager) comprises a huge number of modules (i.e. 50000+ modules) with considerable growth. The one thing that no one can ignore in Nodejs is its default node package manager tool. And also the built-in support for package management on installation. The idea of NPM modules comes with reusable components to avail of the easy installation through an online repository. Each of which has different versions and dependency management.

Nodejs Features #4: NODE_REPORT

This utility tool has picked its place in the Nodejs core. Even it helps to find abnormal terminations, unexpected errors, high CPU usage, and more. In recent updates, Nodejs gets a bunch of diagnostic utilities like Node-report. This is to help in encountering errors and difficulties to pinpoint.


With the combination of Event looping, Nodejs uses a single-threaded model. This particular event mechanism helps the server respond in a non-blocking way. Unlike traditional servers, the Nodejs uses non-blocking which makes the server scalable. In addition, Nodejs uses a single-threaded program to handle a large number of requests.

Nodejs Features #6: NODE_OPTION

Node-option is a new environment variable that comes with Nodejs. It allows command-line arguments via an environment variable. Since it is an environment variable, it can be specified in a project without modifying. Thus, any scripts that run and affect all processes will be derived from the environment.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store