Category: node js

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…

Anyone know Larry Ellison?

September 9, 2022 By Mark Otto Off

Ryan Dahl Asks Oracle to Release the ‘JavaScript’ Trademark — It’s in our small print, but did you know Oracle owns the ‘JavaScript’ trademark? This is why the standard is called ECMAScript instead. It’s all down to Netscape’s deal with Sun Microsystems, which Oracle later…

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…

David’s handy JS debugging tip

September 2, 2022 By Mark Otto Off

12 Useful JavaScript Data Grid Libraries — A rundown of some data grid libraries for providing spreadsheet-esque views over datasets – Zara also shares her recommendations on things to consider when making a choice. Zara Cooper IN BRIEF: DEBUGGING TIP: David Walsh shows off Chrome’s rather…

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.…

The future JavaScript features at TC39

August 26, 2022 By Mark Otto Off

If you missed my note two weeks ago, we took last week off, so you didn’t miss any issues 🙂 We’re now back every week until Christmas (121 sleeps to go..)__Peter Cooper, your editor. When Alternative JS Runtimes Grow Up: Deno Has Big Changes Ahead,…

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,…

A way to automatically generate regexes from examples

August 12, 2022 By Mark Otto Off

☀️ We’re taking a rare week off next week for a brief summer vacation so there won’t be any issue on August 19 – we’ll be back on August 26, complete with a sun tan wind burn, and all the latest JavaScript news, of course…

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…

Genius misuse of WOFF 2 and Brotli to win a JavaScript contest.

August 5, 2022 By Mark Otto Off

JS1024 2022 Competition Winners — JS1024 is a ‘code golfing’ contest where you get 15 days to create a JavaScript or GLSL program within 1024 bytes. This results in lots of creative ideas, complete with fantastic (non-minified) source to check out. The winning JS entry…