Exposing express var in Node.js Express.js server -


normally use code startup express server:

var express = require('express'); var app = express(); 

however looking through express docs , seems reason expose express variable static assets in

express.static 

so thinking of using

var app = require('express')(); 

is there reason expose express var other static assets?


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -