Categories
Node.js Quick Tips Quick Tips

Generate v4 UUIDs without needing the uuid library

< 1 min read

Categories
Node.js Quick Tips Quick Tips

Cancel async operations with AbortController

< 1 min read

Categories
Node.js Quick Tips Quick Tips

Make your imports clearer with the node: protocol

< 1 min read

Categories
Node.js Quick Tips Quick Tips

Take advantage of promise-based APIs in Node.js

2 min read timers/promises module stream/promises module fs/promises module dns/promises module

Categories
Node.js Quick Tips Quick Tips

Tips for migrating from Express to Fastify

2 min read Server creation and configuration is quite similar Fastify plugins are configured a little differently to Express middleware Express routes won’t show up when you call fastify.printRoutes() Fastify automatically serializes objects and arrays to JSON when you send them