Categories
Express Node.js

How does middleware work in Express?

5 min read Jump links The middleware pattern Middleware syntax The two types of middleware Plain middleware Error handling middleware Using middleware At the route level At the router level At the application level Wrapping up

Categories
Node.js

Notes from CityJS Conference 2021

17 min read Jump links Talk: Deno and TypeScript: The Good, The Bad and The Ugly Talk: Supercharge your JavaScript with WebAssembly Talk: New and experimental features in Node.js core Talk: 10 secrets to improve Node.js Security Talk: The Third Age of JavaScript Talk: Next-gen Frontend tooling Talk: Authentication, authorisation and security for modern client-side applications Talk: A […]

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

Categories
Fastify Node.js Videos

Talk: Make the most of modern JavaScript with Fastify (2021-02-25)

< 1 min read

Categories
Command Line Quick Tips Quick Tips

Background a process in the terminal

< 1 min read