Nodejs/Expressjs
35 articles
Harnessing the Power of Top-Level await() without async()
In the ever-evolving landscape of JavaScript and Nodejs, developers are constantly discovering new ways to write cleaner and more efficient code. One …
Mastering Filesystem Operations in Nodejs: A Comprehensive Guide
Nodejs provides a powerful filesystem API through the fs module, but the underlying filesystem behavior can vary significantly across different …
Understanding Backpressure and Stream Optimization in Nodejs
In the world of data handling and transfer, one common challenge that arises is backpressure. If you’ve ever encountered a situation where data …
Best Practices for Production setup of Nodejs Application: Part II
Ensuring performance and reliability are critical aspects when deploying applications in a production environment. Optimizing performance involves …
Best Practices for Production setup of Nodejs Application: Part I
Ensuring performance and reliability are critical aspects when deploying applications in a production environment. Optimizing performance involves …
Health Checks and Graceful Shutdown of Expressjs App using Lightship
Expressjs is a fast, unopinionated, minimalist web framework for Node.js. Few functionalities like graceful shutdown, health checks etc are implicitly …
Why Pino with Logrotate is the Best for Managing Logs in Nodejs Apps
Log files are very useful to troubleshoot, to track usage, improve performance, and monitor the overall health of the application. However, over time, …
Setup logging with Pino and express-http-context in Expressjs
Logging is an essential tool for debugging and understanding the behavior of your application. It allows developers to capture information about the …
A One Time Password (OTP) generator npm library based on nanoid
Mobile number has become the defacto user authentication mechanism in India and hence, OTP generation is a very common use case. otp-gen-agent is a …
Use NVM and .nvmrc for a better Javascript development
Node Version Manager (NVM) is an open source version manager for Node.js (Node) and allows to easily install & manage different versions of Node …