靜態檔案目錄示例的絕對路徑

// Set up Express
var express = require('express');
var app = express();    

// Serve files from the absolute path of the directory
app.use(express.static(__dirname + '/public'));

// Start Express server
app.listen(3030);