Please enable JavaScript.
Coggle requires JavaScript to display documents.
Node.js - Coggle Diagram
Node.js
Section 2
-
Why Should i Use Node.js
-
non-blocking I/O
-
non-blocking = That means that while your node application is waiting for a response it can do other things
Section 3
Module system
before we use the file system module.
We're gonna go ahead and load it and this done using the require function that node provides.
-
Install npm moduls
-
if we delete the npm_modules we can bring it back by writing npm install and it will install the right moduls from our package.json
-
Section 4
File System
-
-
const dataBuffer = fs.readFileSync('1-json.json')
console.log(dataBuffer) // retuern data buffer
console.log(dataBuffer.toString()) // retuern string
-