Why might you need Node.js?

Completed

This unit describes the main benefits of using Node.js, and when to use it.

Multi-purpose technology

You can use Node.js to build a wide variety of production-ready applications. These apps can range from traditional lightweight, high-traffic chat programs to command-line tools and web servers. Node.js was designed from the ground up to handle a high number of concurrent requests.

JavaScript

"Any application that can be written in JavaScript, will eventually be written in JavaScript." – Jeff Atwood, Author, Entrepreneur, Cofounder of StackOverflow.

Today, many applications written outside the browser are in JavaScript or support JavaScript as a first-class citizen language, including:

  • Code editors such as Visual Studio Code and Atom that are written in JavaScript or TypeScript (a superset of JavaScript with static typings). These editors run an embedded version of the Node.js runtime.
  • Web server and back-end processing applications that are written in JavaScript and run on Node.js.
  • Many Internet Of Things (IoT) and real-time applications that are written in JavaScript and rely on Node.js to run, either on the server or through microcontrollers and system on a chip (SoC) platforms such as Puck.js or Tessel.
  • Technologies such as NativeScript that can use JavaScript or TypeScript to build high-performing native mobile applications.
  • Many applications that use JavaScript for their plug-in system, such as Sketch, Adobe XD, and Google Apps Script.

Community

The community has already built more than a million modules and libraries for Node.js and published them on the Node Package Manager (npm). Developers can easily download and integrate these modules into their existing projects. Applications that can run on Node.js include command-line tools, frameworks, web servers, and much more.

Open source

Node.js is open-source technology supported by the OpenJS Foundation. A massive active open-source community and contributors continuously work to improve and optimize the technology. A top-level Community committee has authority over community outreach efforts.

Integration

Open-source packages and modules are available for Node.js that can integrate with many other technologies. For example, you can use Node.js to build a web server that uses the Express.js framework and connects to a MongoDB database. You can also use Node.js to build a command-line tool that uses the Commander.js framework and connects to a MySQL database.