🚀 Power up Your Career with our Full-Stack JavaScript Development Course 💪

What is Node.js

Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js' package ecosystem, npm, is the largest ecosystem of open source libraries in the world....

November 13, 2022 · 2 min · Coderslang Master

Learn JavaScript. Lesson 2. Text Output and Comments

This is the second article of the series “Learn JavaScript” aimed at helping you with your first steps in the JavaScript world. Last time, you learned how to prepare your JavaScript workspace by installing Visual Studio Code and Node....

September 2, 2022 · 3 min · Coderslang Master

Learn JavaScript. Lesson 1. Getting Started

There are various approaches to learning JavaScript. One of the most common approaches is to start with HTML in a playground that runs in your browser. The upside is that it’s very easy to get started, but the downside is that when you get to actually learning JavaScript you’ve lost your motivation, and you can’t move to the next level....

September 1, 2022 · 1 min · Coderslang Master

How to check the latest version of the npm package

If you’re looking to find out what’s the latest version of a certain package, you can quickly check this information right in your terminal with the command npm view. Here’s how you can check the latest version of express:...

August 3, 2022 · 1 min · Coderslang Master

How to find the version of any installed npm package

In this short tutorial you’ll learn how to check the version of any installed npm package including the ones that have been installed globally using the -g flag. Locally installed packages To check the current versions of the npm packages for your project, you should navigate to the project directory where your package....

August 2, 2022 · 1 min · Coderslang Master

How to update all npm package.json dependencies to the latest version

It’s essential to keep all the node modules of your project up to date as the security patches go out. In this short tutorial I’ll teach you how to update all the node_modules to the latest version with a single command....

August 1, 2022 · 2 min · Coderslang Master

The difference between dependencies and devDependencies in package.json

The file package.json is an integral part of every Node.js project. It stores all the dependencies that your project needs. All the dependencies (most often open-source npm modules) are split into two categories: production dependencies and development dependencies....

June 2, 2022 · 2 min · Coderslang Master

What is the --save option for npm install

The --save option for npm install or npm i allows you to add the npm module you’re installing to the file package.json. This way it’ll become one of the project dependencies and will be automatically installed the next time you run npm install....

May 9, 2022 · 1 min · Coderslang Master

What is the difference between ~ and ^ in package.json?

Node package manager supports semantic versioning. To take full advantage of it, you can use the symbols tilde(~) or caret(^). Tilde(~) means approximately equivalent to version. "moment": "~2.29.1" In this example npm install will pick up the latest release of the module moment starting from 2....

February 19, 2022 · 1 min · Coderslang Master

How to access command-line arguments in Node.js

In Node.js the command-line arguments are captured in the object process.argv. Let’s start by logging them to the screen. console.log(process.argv); If you run your script without any arguments, the output will be something like this....

January 19, 2022 · 1 min · Coderslang Master