Node.js: 2 Ways to Colorize Console Log Output

July 10, 2022 A Goodman

By default, when you print out something by using console.log() in Node.js, the output is usually white if your terminal has a dark background color or black if your terminal has a light background color. If…

A few examples of exports and require in Node.js

February 23, 2022 A Goodman

A few easy-to-understand examples that will help you understand “exports” and “require” in Node.js better. Example 1 Exports: Require (file index.js) Examples 2 Export (call it your-file.js or whatever you like): Require: Further reading: 2 Ways…

How to get all Links from a Webpage using Node.js and Cheerio

March 19, 2022 A Goodman

Node.js is a javascript runtime environment that helps you create high-performance apps. Because Node.js functions are non-blocking (commands execute concurrently or even in parallel, it can perform heavy tasks without incurring the cost of thread context…

1 4 5 6