Node.js 22 arrives, backs ECMAScript modules

Node.js 22, the latest version of the popular JavaScript runtime, has arrived, featuring 1require() support for ECMAScript modules, an improved WebSocket client, and an updated version of the Google V8 JavaScript engine. Announced April 24, version 22 of the event-driven, asynchronous runtime can be downloaded from Nodejs.org. The release adds 1require() Read more…

5 ways to use JavaScript promises

Promises are a central mechanism for handling asynchronous code in JavaScript. You will find them in many JavaScript libraries and frameworks, where they’re used to manage the results of an action. The 1fetch() API is one example of promises at work. As a developer, you might not be familiar with creating and Read more…

node –run send_newsletter

#​529 — April 23, 2024 Read on the Web ▶  A Node.js Streams Masterclass — What a treat! Join the creator of Fastify, as well as Node.js TSC member, on an hour long odyssey into the world of streams, a topic in which he specializes. He starts off quite poetically .. Read more…

zx 8.0 for better Node scripting

#​527 — April 9, 2024 Read on the Web zx v8.0: Google’s Way to Write Shell Scripts with Node — A long-standing way to make scripting a more pleasant experience. zx provides useful wrappers around 1child_process , escapes arguments and gives sensible defaults. v8.0 somehow makes zx 20x smaller, faster, Read more…