Node.js Basics: Runtime, Modules, Files and Streams
Learn Node.js Basics: Runtime, Modules, Files and Streams (Phase 16 · Node.js and Express (Optional with Spring Boot), JavaScript) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
JavaScript outside the browser • Node.js runs JavaScript on the V8 engine with a non-blocking, event-driven I/O model (libuv). It has no DOM or window , but offers fs , path , http , os , crypto , process . • npm installs packages ( package.json , package-lock.json , node_modules ). Use "type": "module" for ES modules. • Command-line arguments: process.argv ; environment variables: process.env .