What is Node.js
Node.js is a library that has many amazing features built-in to make JavaScript run on not only the frontend (like a web browser where it has been for years) but the backend as well. While JavaScript is a programming language, Nodejs is a library of functions and code snippets that help write more powerful and simplified code. It runs on Chrome’s V8 engine built by Google using ES6 and C++ bindings, which means it processes commands and code faster than if it was run on other platforms. ES6 or ECMAScript2015 is a more polished version of JavaScript standards (Cantelon, 2017). Node.js is asynchronous which allows it to process multiple requests at the same time instead of waiting for one request to finish before going on to the next like Ruby on Rails, for example. One of the more amazing parts about Node.js is that it is event-driven. Meaning it waits for something to happen before reacting.
Get Ace D Baugh’s stories in your inbox
Join Medium for free to get updates from this writer.
NPM or Node Package Manager is a way for programmers to add functionality to their code from premade and pretested code snippets. For example, if you want to add authentication to your sign-in process, there are many packages to choose from. You would go to the registry and find the one that works for your project and install the package into your project. This is done using the command line (Cantelon, 2017). A registry is a place where you can find and submit your own projects or packages. If you can think of something your project can do, there is probably an NPM out there for you to install.
References:
Cantelon, M. (2017). Chapter One. Welcome to Node.js. In Node. JS in action. Chapter of Book, Manning Publications.





