Tag: node js

✂️ Cutting away the unused parts of your project

October 13, 2022 By Mark Otto 0

Together with  Node Authentication, Simplified — In this article, we lay out a new approach to authentication (plus access control & SSO) in Node.js applications. Userfront 🔐  Node.js Authentication with Twilio Verify — If you’re happy using a third party service, bringing two-factor auth into your…

Digging into dependencies with npm query

October 6, 2022 By Mark Otto 0

Together with  An Active Typosquatting Campaign Targeting npm Users — Security supply chain company Phylum detected a campaign to ‘typosquat’ against a variety of high profile packages. The idea behind typosquatting is that you claim package names similar to others, such as ‘expresss’ for express…

Keep calm and carry on (using Node)

September 29, 2022 By Mark Otto 0

“Don’t Worry, Nobody is Replacing Node.js” — A bold assertion. Fernando reflects on the growing interest in alternative runtimes like Deno and Bun, but notes none really replace Node.js wholesale in the near future. And even if they did, most of your Node skills would…

The Node testing framework we were sleeping on

September 22, 2022 By Mark Otto 0

📗  Shell Scripting with Node.js — Axel is too humble to call this an ‘Ultimate Guide’ or the like, but it is. After months digging into the guts of Node, npm, and the technicalities of shell scripting, he’s released a complete book. You can support…

Creating an npm package in 2022

September 15, 2022 By Mark Otto 0

Best Practices for Creating a Modern npm Package — A step-by-step “as of 2022” walkthrough of creating your own npm package using current best practices. It’s very thorough and certainly worth revisiting, even if you’ve built a package already. As always, though, there’s more than…

Using ML to rewrite a test suite to Playwright

September 8, 2022 By Mark Otto 0

🤖  Rewriting Tests from Cypress to Playwright with AI — Gajus needed to move an entire integration test suite from one framework to another – boring and laborious job, right? Gajus put AI to work, first in the shape of GitHub’s Copilot, but then using…

The ins and outs of ‘bin’ scripts

September 1, 2022 By Mark Otto 0

Tinybench: A Tiny and Simple Benchmarking Library — No dependencies, but uses whatever precise timing capabilities are available (e.g. process.hrtime). You can then benchmark whatever functions you want, specify how long or how many times to benchmark for, and get a variety of stats in return.…

Popular Node.js practices to reconsider

August 25, 2022 By Mark Otto 0

Popular Node.js Patterns and Tools to Reconsider? — Yoni is well known for his work in cataloging Node best practices but he thinks we should reflect upon entrenched approaches over time. Here he presents nine common approaches to reconsider, including the use of Dotenv, Passport.js,…

Native modules become ‘built-ins’

August 11, 2022 By Mark Otto 0

☀️ We’re taking a week off for a brief summer vacation and will be back on August 25, so when you don’t get an issue of Node Weekly next week, it’s our fault, not yours 😉__Peter Cooper, your editor. How To Use Multithreading in Node.js…

A new way to query your dependencies.

August 4, 2022 By Mark Otto 0

Introducing the New npm Dependency Selector Syntax — Another week, another new npm command! npm query is a new top-level command (as of npm v8.16.0) that lets you query and filter the dependencies of your project with a CSS-like dependency selector format so you can…