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
Node.js Quick Tips Quick Tips

How to speed up npm install in your Node.js builds

< 1 min read

Categories
Node.js Quick Tips Quick Tips

Don’t install body-parser – it’s already bundled with Express

< 1 min read

Categories
Node.js Quick Tips Quick Tips

Only use dotenv in development

< 1 min read

Categories
Node.js Quick Tips Quick Tips

Express uses finalhandler for the default error handler

< 1 min read