Articles with the tag #import:

Image of code sample for the article: What are Node.js

What are Node.js ":node" protocol imports?

Gone are the days of the older require/module.exports/CommonJS import syntaxes. In recent versions of Node.js, the support for modern ECMAScript module (ESM) imports is finally on par with the browser standards, but Node.js has also added a few extra features on top of those standards. …read more

Image of code sample for the article: Why default exports are bad

Why default exports are bad

Import statements come in a lot of different flavors in JavaScript and where there is variation some of the options are often better than others. For import statements, we want to easily understand which parts of a module we are going to use and also easily get an overview of where those parts are being used throughout our projects. …read more