You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The core Node.js http module (see: API reference) is just that: a module to interact with HTTP in Javascript.
In contrast, http-server (see: API reference) is not meant to be used as a module, but as a stand-alone static file available via a CLI tool of the same name: http-server. In this way it is more comparable to other tools on the Big list of http static server one-liners.
If you're looking for a module that can serve static files check out ecstatic (which is used by http-server), node-static, or st.
What's the difference between this module and the http module that is part of Node core?
The text was updated successfully, but these errors were encountered: