A few examples of exports and require in Node.js

February 10, 2020 Goodman

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

How to get all links from a webpage using Node.js

February 10, 2020 Goodman

In this article, we will crawl all links (including “href” and “title”) using Node.js and 2 packages: cheerio and request-promise. Installation: Code: Simple as that. From here you are pretty good to go. Now, you can…