Software Alternatives & Reviews

What is happening when I write "const express = require('express'); const app = express();"??[Javascript],[Node.js]

ExpressJS npm
  1. Sinatra inspired web development framework for node.js -- insanely fast, flexible, and simple
    Pricing:
    • Open Source

    #JavaScript Framework #Node.js Framework #Web Frameworks 425 social mentions

  2. 2

    npm

    npm is a package manager for Node.
    When you ran "npm install express" a copy of the express framework is downloaded from npmjs.com and saved to the folder node_modules/express. When you run require('express') the node.js built-in function require is called. This runs the node module resolution algorithm to find a module named "express", which it ends up finding in the file node_modules/express/index.js.

    #Front End Package Manager #JavaScript Package Manager #Package Manager 61 social mentions

Discuss: What is happening when I write "const express = require('express'); const app = express();"??[Javascript],[Node.js]

Log in or Post with