#367 — December 3, 2020

Read on the Web

Node Weekly

AWS Lambda Adds Container Image Support — And AWS uses Node in this post to show off the new feature. AWS Lambda is a serverless platform where you upload code and then it can be executed on a ‘pay as you go’ basis. Supporting containers might feel better to many developers wary of Lambda’s usual ‘upload a ZIP file’ approach. Lambda also now bills in 1 millisecond increments with a 1 millisecond minimum, so it may be worth another look.

Danilo Poccia (AWS)

csv-parser 3.0: A Streaming CSV Parser Aimed at Maximum Speed — Aiming to “be faster than everyone else”, use this to ingest CSV and get JSON in return. neat-csv provides a Promise-based wrapper if you need it.

Mathias Buus

Redis 6.0 on RedisGreen — SSL encryption, key size tracking, memory mapping, online upgrades, and more.

RedisGreen sponsor

npm 7: This Is What I Call An Update!npm 7 came out in October, but here the author sings its praises and why workspaces and peer dependency management have meant to a lot to him.

Fernando Doglio

✨ Rising alternatives to Express

A few alternative webapp libraries and frameworks have come up on our radar lately, if you're looking for a change from Express, Fastify, Koa, and more established options:

  • Tinyhttp 1.0 is a modern 'Express replacement' that also goes the TypeScript route. Being as minimal as possible while leaning on modern language features is its goal.
  • Foal TS is a TypeScript-oriented webapp framework that's just passed 1000 stars on GitHub. While simplicity is one of its goals, it comes with a lot built-in like auth, a CLI, job scheduling, etc.
  • pure-http has no dependencies, is lightweight, and has a very Express-like feel, while being faster.

Of course, Express.js itself remains a fine choice!

📗 Tutorials and Stories

Measuring Web Page Performance with Puppeteer or Playwright — Puppeteer and Playwright are useful for remote controlling headless browsers, and you can use some new Web performance APIs with them to do remote or even automated performance measurement of Web pages.

Giovanni Rago

Mining Your CLI History for Good git Aliases — How a little shell magic can tell you a lot about your working habits and help you make things even more efficient.

Tim Perry

How to Deploy a Node App to AWS Fargate with Auto-Scaling — If full on AWS Lambda isn’t for you, maybe AWS Fargate (basically a serverless compute engine for containers) could get you running serverlessly without a huge paradigm shift.

Matthew Kindzerske

5 Ways Organizations Can Lean into Failure and Transform It into Success

LaunchDarkly sponsor

How to Understand the reduce Function in Five Examples — Summing, seeking, chaining, and generally bringing things together.

Valeri Karpov

Malicious npm Packages Caught Installing Remote Access Trojans — Devs who installed the jdb.js and db-json.js packages were vulnerable to the njRAT malware.

Catalin Cimpanu

What You Need To Know About npm Workspaces
Ruan Martinelli

🛠 Code and Tools

supported by Okta

DuckDB Gets a Node.js APIDuckDB is an interesting, embeddable SQL OLAP DBMS. Think SQLite, but more oriented towards analytics. More on why you might use DuckDB.

CWI Database Architectures Group

auth.js 3.0: GitHub API Authentication Library for Node and Browser — An official library, no less, and it supports four auth strategies.

GitHub

pg-mem: An Experimental In-Memory Postgres Instance for Tests — I’m not sure about this approach for the long term as it’s a clone with its own SQL parser and will not behave identically to Postgres, but if you’re a Node developer maybe it’ll be of interest. There’s a playground if you want to experiment with what it can handle.

Olivier Guimbal

Full-Featured API That Lets You Build Beautiful Video for Your Node App

Mux sponsor

Serverless-Postgres: Manage Postgres Connections at Serverless Scale in Node.jsRDS Proxy is one way to handle lots of simultaneous database connections but.. costs money. This doesn’t, and if you’re using a library built on top of node-pg, you might find it useful.

Matteo Gioioso

npm v7.0.15 Released — A very minor release.
The npm Blog

easy-soap-request: Small Library to Make SOAP Requests Easier — If you still have to work with SOAP..
Caleb Lemoine

Couchnode 3.1.0: The Official Couchbase Node.js Client Library
Couchbase, Inc.

💻 Jobs

Node.js Developer at X-Team (Remote) — Join the most energizing community for developers and work on projects for Riot Games, FOX, Sony, Coinbase, and more.

X-Team

Find a Job Through Vettery — Create a profile on Vettery to connect with hiring managers at startups and Fortune 500 companies. It's free for job-seekers.

Vettery

Elsewhere: In this week's StatusCode Weekly, we covered the best announcements from AWS re:Invent, the 2020 'Advent of Code', a new release of Homebrew and a lot more. If you want a broader range of developer news in our usual style, check it out.