Node.js

How To Use Node.js Modules with npm and package.json — step-by-step Javascript tutorial on Progressive Robot

How To Use Node.js Modules with npm and package.json

The Node.js Package Manager (npm) is the default and most popular package manager in the Node.js ecosystem, and is primarily used to install and manage external modules in a Node.js project. In this tutorial, you will manage packages with npm, first keeping track of modules with the package.json file, and then using the npm CLI tool to list your package dependencies, update your packages, uninstall your packages, and perform an audit to find security flaws in your packages.

Read more
Introduction to New ECMAScript Modules in Node v12 — step-by-step DevOps tutorial on Progressive Robot

Introduction to New ECMAScript Modules in Node v12

If you’re familiar with popular JavaScript frontend frameworks like React and Angular, then the concept of ECMAScript won’t be entirely new to you. ES Modules have the `import` and `export` syntax we see often in frontend frameworks. **Node uses CommonJS which relies on `require()` for imports. We can now use import and export in Node in addition to `require()`. That’s not all that comes with the new Node v12 release, let’s talk about all the new cool features we can expect.

Read more
Cómo instalar Node.js en Ubuntu 18.04 — step-by-step Linux tutorial on Progressive Robot

Cómo instalar Node.js en Ubuntu 18.04

Node.js es una plataforma de JavaScript para programación general que permite a los usuarios crear aplicaciones de red de forma rápida. Al aprovechar JavaScript tanto en frontend como en backend, Node.js hace que el desarrollo sea más uniforme e…

Read more
How To Create a Node.js Module — step-by-step Javascript tutorial on Progressive Robot

How To Create a Node.js Module

In Node.js, a module is a collection of JavaScript functions and objects that can be used by external applications. In this tutorial, you will create a Node.js module organized with npm that suggests what color web developers should use in their designs. You will develop the module by storing the colors as an array, and providing a function to retrieve one randomly. Afterwards, you will run through various ways of exporting and importing a module into a Node.js application.

Read more
CHAT