Back to search

Node.js basics: what Node.js is, common use cases, module.exports, require, npm basics, and package.json basics

Node.js lets JavaScript run outside the browser, especially for servers, tooling, CLIs, and build pipelines.

JavaScript Easy Theory

Node.js basics: what Node.js is, common use cases, module.exports, require, npm basics, and package.json basics

Node.js lets JavaScript run outside the browser, especially for servers, tooling, CLIs, and build pipelines.

  • Node.js is a runtime, not the language
  • CommonJS uses `require` and `module.exports`
  • npm and package.json manage dependencies and scripts

Node.js basics: what Node.js is, common use cases, module.exports, require, npm basics, and package.json basics