---
title: "Google's Squoosh comes to Node"
publication: "Node Weekly"
issue: 392
published_at: "2021-06-10"
canonical_url: "https://nodeweekly.com/issues/392"
---

Plus a variety of library releases and updates this week. |        

#​392 — June 10, 2021 

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

Node Weekly 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/y06oxhmqlz5b2ioe3myi.jpg)](https://web.dev/introducing-libsquoosh/)  

[Introducing libSquoosh: Experimental Image Optimization from Node](https://web.dev/introducing-libsquoosh/) — [Squoosh](https://squoosh.app/) is an image optimization web app originally built by a team at Google in 2018 and since then it has been [updated](https://web.dev/squoosh-v2/) and offered in CLI form. Now, Surma has unveiled [libSquoosh](https://github.com/GoogleChromeLabs/squoosh/tree/dev/libsquoosh), a Node library for performing such extreme image optimization from whatever code you like. 

Surma (Google)   [![\](https://copm.s3.amazonaws.com/789bdb25.png)](https://ter.li/6zi9n9) 

[Spend Less Time Debugging and More Time Building with Scout](https://ter.li/6zi9n9) — Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues in minutes. See for yourself why Scout is a Node developers’s best friend with a free 14-day trial, no credit card needed. 

Scout APM sponsor   

▶[Exploring Deno Land 🦕 with Ryan Dahl](https://changelog.com/podcast/443) — Ryan Dahl, the original creator of Node.js and now creator of the [Deno](https://deno.land/) runtime, went on the popular Changelog podcast to talk about how the success of Node changed his life and what led him to creating Deno. 

The Changelog Podcast podcast   

[PM2 5.0 Released: The Production Process Manager](https://github.com/Unitech/pm2/blob/master/CHANGELOG.md#500) — PM2 (enjoy the [fancy homepage](https://pm2.keymetrics.io/)) is a popular process manager and load balancer for long running Node.js apps. 5.0 is a significant release that adds a new local system monitoring feature for tracking metrics like CPU and memory use. 

Alexandre Strzelewicz   

[Don't Use Functions As Callbacks Unless They're Designed for It](https://jakearchibald.com/2021/function-callback-risks/) — There's been a severe lack of Node blog posts this week, but this older one has been doing the rounds on social again, and it's fantastic enough to re-share :-) Callbacks can introduce added hidden complexity that can cause seemingly innocent code to break so it pays to be careful. 

Jake Archibald   

[AWS DevSecOps Day on June 16: Bridgecrew for CloudFormation](https://bridgecrew.io/webinar/2106-aws-dev-day-cloudformation-devsecops-bridgecrew?utm_medium=sponsorednewsletter&utm_source=nodeweekly&utm_campaign=nw210610&utm_content=awsdevday) — Gain hands-on experience with automated security-as-code. RSVP for free with AWS credits included for a limited time. 

Bridgecrew sponsor   

[Mocha 9.0 Released: The Popular JavaScript Test Framework](https://github.com/mochajs/mocha) — Mocha has been a popular go-to test framework for both Node and the browser for years. [9.0](https://github.com/mochajs/mocha/releases/tag/v9.0.0) drops Node 10.x support and is going ‘ES modules first’ by using ESM `import` rather than CommonJS `require` to load test files by default. 

Mocha   

[Some Reasons Why Bugs Might Feel 'Impossible' to Resolve](https://jvns.ca/blog/2021/06/08/reasons-why-bugs-might-feel-impossible/) 
Julia Evans     

🛠 Code and Tools   

supported by [![Okta\](https://res.cloudinary.com/cpress/image/upload/v1602154330/de7dtktheistsfpqdem4.png)](https://developer.okta.com/?utm_campaign=newsletter_cooperpress_all_multiple_inc_dev_sponsored-section_null&utm_source=cooperpress&utm_medium=cpc)    

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/rwoslgyo2pgnkzxxq8x6.jpg)](https://github.com/html-to-text/node-html-to-text)   

[html-to-text 8.0: Advanced HTML to Text Converter](https://github.com/html-to-text/node-html-to-text) — Uses a variety of techniques to convert even complex HTML into plain text (but with some formatting, such as for tables). It can be heavily customized and tweaked, too. 

KillyMXI   

[test-console: A Simple Library for Testing Node Console Output](https://github.com/jamesshore/test-console) 

James Shore   

[node-localstorage: A Drop-In Substitute for the Browser Native `localStorage` API](https://github.com/lmaccherone/node-localstorage) — Why let Deno have all the fun? 

Larry Maccherone   

[See Your Microservices, Build Your Node.js Apps Faster](https://epsagon.com/nodejs-ts/?utm_source=advertisement&utm_medium=cooperpress&utm_campaign=Nodeweekly) 

Epsagon sponsor   

[Trash: Move Files and Directories to the 'Trash'](https://github.com/sindresorhus/trash) — Rather than deleting files outright (e.g. `unlink`), this moves them to the ‘trashcan’ equivalent on Windows, Linux, and macOS. Sindre is looking for help maintaining the Linux part though, otherwise support may get dropped. 

Sindre Sorhus   

[Discord.js: A Library for Interacting with Discord's API](https://github.com/discordjs/discord.js) — A way to write bots or similar tools for the wildly popular [Discord](https://discordapp.com/) chat system. 

Amish Shah     

🧰 OTHER UPDATED PACKAGES TO CHECK OUT   

- [node-irc](https://github.com/matrix-org/node-irc) – IRC client library as used by the Matrix project.
- [node-csv-parse](https://github.com/adaltas/node-csv-parse) – A CSV parser implementing the `stream.Transform` API.
- [node-oracledb 5.2](https://github.com/oracle/node-oracledb) – The official Oracle database driver for Node.js.
- [Gitbeaker](https://github.com/jdalrymple/gitbeaker) – A GitLab API client library for Node.      

💻 Jobs  

[JavaScript Developer @ Kinsta](https://jobs.lever.co/kinsta/a3fe724e-65de-424c-8c07-541b15a5390a?lever-origin=applied&lever-source%5B%5D=JS%20Newsletters) — Join our ownership-embracing team of JS developers in a relaxed environment where culture is as important as technical excellence. 
Kinsta   

[Find Software Engineering 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=5-minutes) — Take 5 minutes to build your free profile & start getting interviews for your next job. Companies on Hired are actively hiring right now. 
Hired      

**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|*)
