pletechnology.blogg.se

Npm tutorials
Npm tutorials






npm tutorials

The below command line shows how a module “express” can be installed. In order to use modules in a Node.js application, they first need to be installed using the Node package manager.

  • Bluebird – Bluebird is a fully-featured promise library with a focus on innovative features and performance.
  • Restify – restify is a lightweight framework, similar to express for building REST APIs.
  • MongoDB – The MongoDB Node.js driver is the officially supported node.js driver for MongoDB.
  • Jade – Jade is a high-performance template engine and implemented with JavaScript for node and browsers.
  • This module is good for creation of chatting based applications.
  • Socket.io – Socket.IO enables real-time bidirectional event-based communication.
  • Express framework – Express is a minimal and flexible Node js web application framework that provides a robust set of features for the web and mobile applications.
  • There are many readymade modules available in the market which can be used within Node js.īelow are some of the popular modules which are used in a Node js application
  • NPM (Node Package Manager) Publish PackageĪs stated earlier, modules in Node js are a way of encapsulating code in a separate logical unit.
  • Since each module is an independent entity with its own encapsulated functionality, it can be managed as a separate unit of work. That’s where modules in Node.js comes in action.

    npm tutorials

    It’s always a good programming practice to always segregate code in such a way that makes it more manageable and maintainable for future purposes. A module in Node.js is a logical encapsulation of code in a single unit.








    Npm tutorials