Web Developer

Node.JS Section 3: Module System

https://links.mead.io/nodecourse

first import functions and assign it to an variable: const fs = require(‘fs’);

functions:

  • fs.writeFileSync(path, data)
  • fs.appendFileSync(path, data)

using npm packages:

  • npm init : to initialize npm
  • npm install packageName

npm package: nodemon, which is like ng serve to monitor the changes of the code instantly.