Using ‘execa’ to run other processes

#​427 — March 3, 2022

Read on the Web

Node Weekly

Running Commands with execa in Node — We’ve linked to Sindre Sorhus’ popular execa process execution library many times over the years, but here’s a thorough tutorial which also shows off the value execa brings over the vanilla child_process.

Simon Plenderleith

Tired of Egregious Egress? — Vultr offers affordable Cloud Compute across more than 20 global locations featuring advanced networking features and a one-click Application & OS Marketplace. Instances start as low as $2.50 per month. Claim $100 in credit now.

Vultr sponsor

Red Hat and IBM’s Node.js ‘Reference Architecture’ — Big companies like to have well defined playbooks from which to work and Red Hat and IBM are no different. It’s an opinionated guide to how their engineering teams work with Node, what tools they prefer, and their development and operational practices.

Running on from this Red Hat and IBM then have an extensive series of blog posts digging into each section from logging to containers and, this week, code coverage.

Red Hat and IBM

📄 PDF: From JavaScript to Rust: A Free Book — A book that attempts to map common JavaScript workflows to the Rust ecosystem, if you’ve been keen to pick up the increasingly popular systems language. There’s also a GitHub repo with the source for the book.

Jarrod Overson

In brief:

NodeSource has released N|Solid 4.7.0, the latest version of its enterprise-level production-oriented Node.js platform.

David Herron digs into the intricacies of Node’s newest (experimental) feature: loading modules over HTTPS.

A developer reimplemented Node’s URL parser in Rust with a WebAssembly bridge for their Masters graduation project.

💻 Jobs

Senior Backend Developer — Are you looking to level up your skills and work on a wide variety of applications and technologies? Look no further.

Bitovi

Find Tech Jobs with Hired — Create a profile on Hired to connect with hiring managers at growing startups and Fortune 500 companies. It’s free for job-seekers.

Hired

🐦 The official Node.js Twitter account also started a thread about companies looking to fill Node.js-related roles if you want more.

Understanding the Dependencies Inside Your package.json — Recently the authors looked at the basics of package.json but now they’ve moved on to defining what each of the dependency related keys in package.json are for.

Gabby T and Marian Villa (NodeSource)

Cheat Sheet: OWASP Top 10 Vulnerabilities (And How to Fix Them)

Snyk sponsor

Migrating a Node.js App’s Database From MongoDB to Postgres

Phineas Jensen

Profiling Next.js Apps with Parca

Manoj Vivek

🛠 Code & Tools

Oclif 2.5: Heroku’s Open CLI Framework for Node — A mature framework for building command line interfaces, whether with a few simple flags or lots of subcommands. GitHub repo.

Heroku

dnt: Deno-to-Node Package Transformation Tool — Takes a Deno module and creates an npm package for use in Node. Goes further than mere packaging though and actually injects shims, transforms commonly Deno code forms to Node approaches, and more.

Deno Land

Hygen: A Simple and Scalable Code Generator Tool — Build ad-hoc generators quickly right up to full on project scaffolds.

Dotan J. Nahum

Nohm 3.0: An ORM-of-Sorts for RedisRedis is a popular in-memory data structure store commonly associated with caching. It’s not inherently relational, but you can model such data structures within it and Nohm provides some abstractions to Node users.

Moritz Peters

Getting Started with OpenTelemetry: Observability for Modern Apps

InfluxData sponsor

pg-boss 7.2.0: Postgres and Node Job Queueing System — A job queue for background processing and reliable asynchronous execution. It uses Postgres specific features to guarantee safety.

Tim Jones

Fiber 2.28.0: An Express.js Inspired Web Framework for Go — A Go project? In a Node newsletter? Well, a lot of us like playing with different languages, and Fiber is particularly neat if you like the Express.js approach. We also have a Go newsletter if you do play in that space at all.

Fiber

ts-node 10.6.0: TypeScript Execution and REPL for Node.js

TypeStrong

🕰 ICYMI (Some older stuff that may catch your eye…)

This straight-to-the point tutorial covers creating and publishing a private npm package with the GitHub package registry.

Thomas Sentre shares how to create a real-time chat app with Node and WebSocket.

Here’s a quick look at how to use the ‘error cause’ feature when debugging.

Dima Grossman explains how to go about reducing your monorepo build time by up to 70%(!).

Leave a Reply

Your email address will not be published. Required fields are marked *