11 NodeJS modules every node developers should be using by now

NodeJS has been introduced 6 years ago and took some time to gain popularity. And now it becomes most successful technology. One aspect of NodeJS that makes it popular is the large numbr of third party modules are available to use. We can find any module and use it for free. And popularity increases, list of modules increased with it and its almost dificult to choose which module we should have to use. Because you’ll find multiple modules for same purpose.

In this post, I’m listing out 11 modules that every NodeJS developer should use.

Async.js

Async is a utility module which provides straight-forward, powerful functions for working with asynchronous JavaScript. Although originally designed for use with Node.js and installable via

NPM Command:

npm install async

Visit NPM

 

 

Request — Simplified HTTP Client

Request is designed to be the simplest way possible to make http calls. It supports HTTPS and follows redirects by default. Our App needs to deal with external HTTP calls for load data or send data. And Request makes it easy, secure and reliable. It also works good with authentication methods.

NPM Command:

npm install request

Visit NPM

 

 

Browserify

Browserify (in the simplest use case) looks at a single JavaScript file, and follows the require dependency tree, and bundles them into a new file. It does this using the Common JS require pattern, just like Node, and enables you to require packages installed via NPM!

NPM Command:

npm install browserify

Visit NPM

 

 

PM2

PM2 is a production process manager for Node.js applications with a built-in load balancer. It allows you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks.

NPM Command:

npm install PM2

Visit NPM

 

 

Socket.io

Socket.IO is a JavaScript library for realtime web applications. It enables realtime, bi-directional communication between web clients and servers. It has two parts: a client-side library that runs in the browser, and a server-side library for Node.js.

NPM Command:

npm install socket.io

Visit NPM

 

 

Mocha

Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases.

NPM Command:

npm install mocha

Visit NPM

 

 

Cheerio

Ever wanted to use jQuery ar server side? Do it with Cheerio. Cheerio is a fast, flexible, and lean implementation of core jQuery designed specifically for the server.

NPM Command:

npm install cheerio

Visit NPM

 

 

Passport

Passport is authentication middleware for Node.js. Extremely flexible and modular, Passport can be unobtrusively dropped in to any Express-based web application. A comprehensive set of strategies support authentication using a username and password, Facebook, Twitter, and more.

NPM Command:

npm install passport

Visit NPM

 

 

NodeMailer

Nodemailer is a module for Node.js applications to allow easy as cake email sending. The project got started back in 2010 when there was no sane option to send email messages, today it is the solution most Node.js users turn to by default.

NPM Command:

npm install nodemailer

Visit NPM

 

 

Morgan

Morgan is one of the popular libraries for Node developers. Morgan is another HTTP request logger middleware for Node.js. It simplifies the process of logging requests to your application. You might think of Morgan as a helper that collects logs from your server, such as your request logs.

NPM Command:

npm install morgan

Visit NPM

 

 

Restify

 

restify is a node.js module built specifically to enable you to build correct REST web services. It intentionally borrows heavily from express as that is more or less the de facto API for writing web applications on top of node.js.

NPM Command:

npm install restify

Visit NPM

 

Thanks for visiting CodePortal and reading this blog!