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

smartface.io - Proper way to change color scheme for whole application -

javascript - three.js lot of meshes optimization -

Email notification in google apps script -