Web Development/Backend2 32. Exploring Modules & The NPM Universe 323. Working With module.exports ./math.js module.exports = { add: (a, b) => a + b, PI: 3.14159 } ./app.js const { add, PI } = require('./math') console.log(add(2, 4)); console.log(PI); 324. Requiring A Directory When requiring a directory, index.js file will be used in Node 325. Introducing NPM NPM - Node Package Manager - A library of thousands of packages published by other developers that we.. 2022. 1. 28. 31. Our First Brush With Node 318. The Node REPL - REPL: Read-Eval-Print Loop 320 - 321. global - The global namespace object process - It provides information about, and control over, the current Node.js process. process.argv - Returns an array containing the command-line arguments passed when the Node.js process was launched. fs - It enables interacting with the file system in a way modeled on standard POSIX functions. con.. 2022. 1. 27. 이전 1 다음