Shell scripting in Node with zx

December 16, 2021 By Mark Otto 0

How To Write Shell Scripts in Node with Google’s zxzx is a utility that makes it easier to write command line scripts based around Node. This tutorial covers the basics before going on to build a command-line tool that helps bootstrap configuration for new Node projects.

Simon Plenderleith

Node’s New(ish) node: Protocol Imports — If you want to make it really clear that a built-in Node module is being imported (and not something with the same name or that’s in node_modules) this is a new approach (in all recent versions of Node for ESM import and v14.18+ and v16+ for import and require).

Dr. Axel Rauschmayer

Malicious npm Packages Are Now Stealing Discord Tokens — We’ve been hearing this year of compromised npm packages trying to steal people’s crypto wallet keys or to mine cryptocurrency, but JFrog researchers have now found 17 malicious packages trying to get hold of Discord chat account tokens(!)

Jonathan Greig

What’s New in npm 8?Two months ago we mentioned the launch of npm 8 with the subtitle of ‘but it’s not a huge deal.’ That’s why there weren’t (m)any blog posts about it, but Gabby’s made an attempt to explain what little there was.

Gabby T

How To Use Postgres with Node on Ubuntu 20.04 — DigitalOcean does a good job of funding the creation of straightforward walkthrough tutorials on various topics, and if you want to write Node code that talks to a Postgres database via the node-postgres package, this is a similar such effort covering every step.

Stanley Ulili

Remote Senior Backend Engineer — Come and help us build the future of work. We’re a friendly team working on hard problems. Node, Hapi, Postgres, Elastic, Redis.

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.

🛠 Code & Tools

Got 12.0: A Powerful HTTP Request Library for Node — Got is a popular HTTP request library from Sindre Sorhus (plus many contributors too, of course). v12.0 is the first release in a fair while, it goes pure ESM, adds read timeout support, improves retry options, and includes a lot of bugfixes.

Sindre Sorhus

NVM for Windows 1.1.9 Released — A Node.js version manager for Windows users which, despite the name, is a totally different thing to the better known nvm project. v1.1.9 is newsworthy as it’s code signed – thanks to Aaron Yong for sponsoring that.

Corey Butler