package.json and npm Commands
Master package.json scripts and essential npm commands for installing and managing dependencies.
Master package.json scripts and essential npm commands for installing and managing dependencies.
Use fs.promises with .then() and .catch() for cleaner asynchronous file handling.
Split code into reusable modules with module.exports and require (CommonJS).
Use the built-in fs module to read, write, update, and delete files in Node.js.
Get system information with the os module: platform, memory, CPU, hostname, and uptime.
Use synchronous fs methods for simple scripts, and learn when sync I/O is a bad idea on servers.
Read and write files asynchronously with callbacks so Node.js can keep handling other work.
See how Node.js powers REST APIs, authentication, databases, and server-side business logic.
Install Node.js and npm, then verify versions from the terminal on Windows, macOS, or Linux.
Write and run your first Node.js script with console.log using the node command.