
웹 응용 프로그램 빌드하기 위한 몇 가지 기능 제공
import express from "express";
const app = express();app.use(미들웨어);app.get();app.use('/path', router);app.use("/public", express.static(__dirname + "/public"));app.use(express.json)app.set('view engine', 'pug');app.listen(port, callback)HTTP 요청 및 응답을 처리하기 위한 하위 수준 모듈
import http from "http";
const httpServer = http.createServer(app) const httpServer = http.createServer((req, res) => { ... });httpServer.listen(port, handleListen);httpServer.on('event', callback);httpServer.close(callback);