createApplication() — express Function Reference
Architecture documentation for the createApplication() function in express.js from the express codebase.
Entity Profile
Dependency Diagram
graph TD d52160c9_7d33_476d_280d_c1822b8443ab["createApplication()"] cfec277b_82ee_9595_362c_db549ae97eb6["express.js"] d52160c9_7d33_476d_280d_c1822b8443ab -->|defined in| cfec277b_82ee_9595_362c_db549ae97eb6 style d52160c9_7d33_476d_280d_c1822b8443ab fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
lib/express.js lines 36–56
function createApplication() {
var app = function(req, res, next) {
app.handle(req, res, next);
};
mixin(app, EventEmitter.prototype, false);
mixin(app, proto, false);
// expose the prototype that will get set on requests
app.request = Object.create(req, {
app: { configurable: true, enumerable: true, writable: true, value: app }
})
// expose the prototype that will get set on responses
app.response = Object.create(res, {
app: { configurable: true, enumerable: true, writable: true, value: app }
})
app.init();
return app;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does createApplication() do?
createApplication() is a function in the express codebase, defined in lib/express.js.
Where is createApplication() defined?
createApplication() is defined in lib/express.js at line 36.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free