---
title: "Using 'execa' to run other processes"
publication: "Node Weekly"
issue: 427
published_at: "2022-03-03"
canonical_url: "https://nodeweekly.com/issues/427"
---

Plus converting Deno packages to Node, a Rust book, and even a Go(lang) project. |        

#​427 — March 3, 2022 

[Read on the Web](https://nodeweekly.com/issues/427)   

Node Weekly 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/ehyxdraltmafmeljnkms.jpg)](https://blog.logrocket.com/running-commands-with-execa-in-node-js/)  

[Running Commands with `execa` in Node](https://blog.logrocket.com/running-commands-with-execa-in-node-js/) — We’ve linked to Sindre Sorhus’ popular [execa](https://github.com/sindresorhus/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   [![\](https://copm.s3.amazonaws.com/4e5928a0.jpg)](https://vultr.com/promo/try100?promo=100VULTROFFER&utm_source=nodeweekly&utm_medium=syndication&utm_campaign=q122) 

[Tired of Egregious Egress?](https://vultr.com/promo/try100?promo=100VULTROFFER&utm_source=nodeweekly&utm_medium=syndication&utm_campaign=q122) — 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'](https://github.com/nodeshift/nodejs-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](https://developers.redhat.com/blog/2021/03/08/introduction-to-the-node-js-reference-architecture-part-1-overview) digging into each section from [logging](https://developer.ibm.com/blogs/nodejs-reference-architectire-pino-for-logging/) to [containers](https://developers.redhat.com/articles/2021/08/26/introduction-nodejs-reference-architecture-part-5-building-good-containers) and, this week, [code coverage.](https://developers.redhat.com/articles/2022/03/02/introduction-nodejs-reference-architecture-part-7-code-coverage) 

Red Hat and IBM   

📄 PDF: [From JavaScript to Rust: A Free Book](https://github.com/vinodotdev/node-to-rust/releases/download/v1/from-javascript-to-rust.pdf) — 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](https://github.com/vinodotdev/node-to-rust/) with the source for the book. 

Jarrod Overson   

**In brief:** 

- NodeSource has released [N|Solid 4.7.0](https://nodesource.com/blog/announcing-NSolid-v4.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.](https://itnext.io/importing-an-es6-modules-over-http-https-in-a-node-js-225ffba8c3fc)
- A developer [reimplemented Node's URL parser in Rust](https://www.yagiz.co/implementing-node-js-url-parser-in-webassembly-with-rust/) with a WebAssembly bridge for their Masters graduation project.    

💻 Jobs  

[Senior Backend Developer](https://bitovi.applytojob.com/apply/ddJgMjxN3C/Backend-Nodejs-Developer-Consultant-Remote-Full-Time?source=nodewkly) — 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](https://hired.com/join/?utm_source=newsletter&utm_medium=sponsor&utm_campaign=%28b2c%29%28l-all%29%28r-all%29%28cooper-nodeweekly%29&utm_content=find-your-next-job) — 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](https://twitter.com/nodejs/status/1498805373888712704) if you want more.     

[Understanding the Dependencies Inside Your `package.json`](https://nodesource.com/blog/understanding-dependencies-inside-your-packagejson) — Recently the authors looked at [the basics of `package.json`](https://nodesource.com/blog/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)](https://go.snyk.io/owasp-top-ten-cheatsheet.html?utm_campaign=Code-Security-2022&utm_medium=Paid-Email&utm_source=Cooperpress-Node-Weekly&utm_content=owasp-top-ten-cheatsheet) 

Snyk sponsor   

[Migrating a Node.js App's Database From MongoDB to Postgres](https://www.endpointdev.com/blog/2022/02/migrating-mongodb-to-postgresql/) 
Phineas Jensen   

[Profiling Next.js Apps with Parca](https://www.polarsignals.com/blog/posts/2022/03/02/profiling-nextjs-app-with-parca/) 
Manoj Vivek   

🛠 Code & Tools 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/pdmbbfmsffudiffacmve.jpg)](https://oclif.io/)  

[Oclif 2.5: Heroku's Open CLI Framework for Node](https://oclif.io/) — A mature framework for building command line interfaces, whether with a few simple flags or lots of subcommands. [GitHub repo](https://github.com/oclif/oclif). 

Heroku   

[dnt: Deno-to-Node Package Transformation Tool](https://github.com/denoland/dnt) — Takes a [Deno](https://deno.land/) 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](https://github.com/jondot/hygen) — Build ad-hoc generators quickly right up to full on project scaffolds. 

Dotan J. Nahum   

[Nohm 3.0: An ORM-of-Sorts for Redis](https://github.com/maritz/nohm) — [Redis](https://redis.io/) 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](https://www.influxdata.com/getting-started-with-opentelemetry/?utm_source=vendor&utm_medium=referral&utm_campaign=2022-03-03_spnsr-nl_opentelemetry_global&utm_content=nodeweekly) 

InfluxData sponsor   

[pg-boss 7.2.0: Postgres and Node Job Queueing System](https://github.com/timgit/pg-boss) — 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](https://github.com/gofiber/fiber) — 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](https://golangweekly.com/) if you do play in that space at all. 

Fiber   

[ts-node 10.6.0: TypeScript Execution and REPL for Node.js](https://github.com/TypeStrong/ts-node/releases/tag/v10.6.0) 
TypeStrong     

🕰 **ICYMI** _(Some older stuff that may catch your eye...)_ 

- This straight-to-the point tutorial covers [creating and publishing a private npm package](https://adevait.com/software/publish-private-npm-packages-with-github-package-registry) with the GitHub package registry.
- Thomas Sentre shares [how to create a real-time chat app with Node](https://blog.bitsrc.io/build-a-minimalist-real-time-chat-app-using-node-js-and-websocket-c70aecbaba3c) and WebSocket.
- [Here's a quick look at how to use the 'error cause' feature](https://medium.com/ovrsea/power-up-your-node-js-debugging-and-error-handling-with-the-new-error-cause-feature-4136c563126a) when debugging.
- Dima Grossman explains how to go about [reducing your monorepo build time by up to 70%](https://dev.to/scopsy/how-we-reduced-our-nodejs-monorepo-build-time-by-70-3oma)(!).     

**Got a new email?** You can [change your address here](https://nodeweekly.com/edit_subscription/*|UID|*). 

--- 

**Bored of us?** [Click here to stop getting Node Weekly](https://nodeweekly.com/leave/*|UID|*). 

--- 

**Got a link for us?** Reply and tell us. We can't include everything but we'll look at anything you send. Thanks! 

--- 

**Want to sponsor?** Email `[kristina@cooperpress.com](mailto:kristina@cooperpress.com)` for details. 

--- 

Published by Cooper Press Ltd.
Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom 

[Stop getting this newsletter.](https://nodeweekly.com/leave/*|UID|*)
