#353 — August 27, 2020 |
Node Weekly |
The Headless Dev: Guides to Learning Puppeteer and Playwright — Puppeteer and Playwright are both fantastic high level browser control APIs you can use from Node, whether for testing, automating actions on the Web, scraping, or more. Code examples are always useful when working with such tools and these guides help a lot in this regard. Checkly |
Docker Best Practices with Node.js — Patterns and practices with code examples on the ‘dockerizing’ of Node apps. It covers the basics but goes all the way to advanced decisions like how much and where to limit the container’s memory, using a process manager or having Node itself as the root process and more. Goldberg, Scheufler, Bruyere and Martin |
The Definitive Introduction to Svelte with Rich Harris — Learn how the Svelte framework works, write svelte components, and take a tour through the entire Svelte API in this detailed video course. Frontend Masters sponsor |
Electron 10.0.0 Released — The popular cross-platform desktop app development framework reaches a big milestone, though despite hitting double digits, this isn’t really a feature packed released but more an evolution of an already winning formula. v10 steps up to Chromium 85, Node 12.1.3, and V8 8.5. Electron Team |
npm v7.0.0 Beta 7 Released — Another week, another round of releases for the npm 7 beta. We featured the main news about npm 7 last week (so catch up with that if you need to) but the npm team are keen for you to test it out. The npm Blog |
💻 Jobs |
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 |
🧑💻 Interested in running a job listing in this newsletter? There's more info here.
📗 Tutorials |
Running Headless Chromium on Azure Functions with Puppeteer and Playwright — With a recent update to Azure Functions, it is now possible to run headless Chromium in the Linux Consumption plan. This enables some serverless browser automation scenarios using popular frameworks such as Puppeteer and Playwright. Anthony Chu |
▶ Creating a Discord Bot With Node.js — Using the Discord.js module. A thorough, easily followed screencast, but does run at over an hour. Anson the Developer |
AppSignal Is All About Automatic Instrumentation and Ease of Use — In the last weeks and months, we’ve added auto instrumentation for Apollo, PostgreSQL, Redis and Next.js. AppSignal sponsor |
How to Customize the Color of VS Code's Error Underline Squiggles — With a few lines added to settings.json, you can change the color of error, warning, and info squiggles (those little lines that appear underneath text.) Dave Ceddia |
What's New in Mongoose 5.10: Improved Transactions — One for MongoDB users. Valeri Karpov |
▶ How To Deploy a Resilient Node App on Kubernetes from Scratch Kamal Nasser (DigitalOcean) |
🛠 Tools, Resources and Libraries |
Light Date ⏰: Fast and Lightweight Date Formatting for Node and Browser — Comes in at 157 bytes, is well-tested, compliant with Unicode standards on dates, and written in TypeScript. Antoni Kepinski |
Pelias: A Modular, Stand-Alone Coarse Geocoder — Given an address or place name this will come up with geographic coordinates, and vice versa. It’s very coarse, but it may be acceptable for your use case. Demo here. Pelias |
ePaper.js: A Node Library for Working with an ePaper Display on a Raspberry Pi — Render HTML DOM onto an ePaper display (the Waveshare 4.2inch ePaper Module, for now) with a simple JavaScript and WebSocket API. samson king |
We Create Your Custom N-API Binding Saving You Time and Money inspiredware sponsor |
fastest-levenshtein: Performance Oriented Levenshtein Distance Implementation — Levenshtein distance is a metric for measuring the differences between two strings (usually). This claims to be the fastest JS implementation, but we’ll let benchmarks be the judge of that :-) ka-weihe |
@hydre/rgraph: A High Performance RedisGraph Client — RedisGraph is a Property Graph database built on top of Redis. Hydre |
make-synchronous: Make an Asynchronous Function Synchronous — It’s always interesting when a library developer strongly recommends against using it, but there are specific use cases for this. Also from the same author is sleep-synchronously. Sindre Sorhus |
graphql-api-monitor: A Tool for Monitoring Changes to GraphQL APIs — A Node powered tool for monitoring GraphQL APIs, in particular for changes to them. Dee See |
🕰 ICYMI (Some older stuff that's worth checking out...)
|