Node JS

  • Backend JS runtime environment - allows to run JS on the server;
  • Asynchronous and event-driven;
  • Non-blocking I/O model;
  • Single-threaded;
  • To execute a JS file, use node <file_name>.

npm

  • Node Package Manager;
  • Manages dependencies;
  • Consists on a command line interface and an online repository of packages called npm registry;
  • The package.json file contains the list of dependencies.
  • To install a package, run npm install <package-name>.
  • To initialize a project, run npm init.