NPM stands for Node Package Manager and it is a package manager for NodeJS packages/modules. By using the NPM, we can easily install all the packages/modules. It is a command line tool which help us to install, update or uninstall the NodeJS packages in our application.
npm install --g module_name // To install it globally
npm install --save module_name // To install it locally in your application
Some of the most popular and useful npm modules today are given below:-
Express or ExpressJS is a one of the most popular framework for NodeJS, released as free and open-source software under the MIT License. Express is designed for building web applications and APIs.
Lodash is an open source, modern, and one of the most popular javascript utility library which provides utility functions for common programming tasks using the functional programming paradigm. Lodash project is inspired by the UnderScore utility library. The main objective of this library is modularity, performance and simplicity. Lodash library handles the various types of data such as Arrays, objects, strings, functions, date etc.
In NodeJS application, sometimes we have to execute functions either synchronously or asynchronously. To achieve this, we have a NodeJS module called “async”. Async is a utility module which provides straight-forward, powerful functions for working with asynchronous JavaScript.
NestJS is a progressive NodeJS typescript based framework for building efficient and scalable server-side applications, inspired by Angular.
Moment or MomentJS is a lightweight JavaScript date library for parsing, validating, manipulating, formatting, and displaying dates and times in JavaScript/NodeJS.
Grunt is a JavaScript task runner, which is used to automatically perform frequent tasks such as minification, compilation, unit testing, and linting.
Gulp is a task runner used for automation of time-consuming and repetitive tasks involved in web development like minification, concatenation, cache busting, unit testing, linting, optimization, etc. Gulp is a similar module like Grunt or GruntJS.