← Node.js & Express learning pathNode.js & Express · Module 4 of 10
Core modules: fs, path, http
Use Node's built-in modules to work with files and servers.
📖 Key ideas
- fs reads and writes files.
- path joins paths safely: path.join(__dirname, "data.json").
- http creates a basic web server.
- os and process give system and environment info.
- process.env reads environment variables.
💡 Real-life example: Core modules are the tools that come in the box with your new toolkit; no shopping needed.
fsFile system module
pathBuilds file paths safely
httpCreates servers and requests
process.envEnvironment variables