DEV Community

Deep Bag
Deep Bag

Posted on

NODEJS IMPORTANT THINGS!

1. What is Nodejs?
Node.js is an open-source and cross-platform runtime environment built on Chrome’s V8 JavaScript engine for executing JavaScript code outside of a browser.

2. What is Middleware?

  • Middleware framework for handling the different routing.
  • it works between the request and response cycle.
  • Middleware gets executed after the server receives the request and before the controller actions send the response.
    Image description
    _Advantages of using middleware: _

  • Middleware can process request objects multiple times before the server works for that request.

  • Middleware can be used to add logging and authentication functionality.

  • Middleware improves client-side rendering performance.

  • Middleware is used for setting some specific HTTP headers.

  • Middleware helps for Optimization and better performance.
    Image description

3. What is Node Package Manager?
Node Package Manager (NPM) is a command line tool that installs, updates or uninstalls Node.js packages in your application.
In another words:
NPM (Node Package Manager) is the default package manager for Node.js

Top comments (1)

Collapse
 
andrewbaisden profile image
Andrew Baisden

Thanks for the intro.