Why Tsup Beats Nodemon and Ts-Node for Path Alias in TypeScript
| |

Why Tsup Beats Nodemon and Ts-Node for Path Alias in TypeScript

Introduction To answer the title’s questions, it’s because no extra configuration is required for tsup! I have previously talked about how we can get a typescript projected started with tsup, typescript and express. I have also mentioned that we did not configure tsconfig.json, so let us tackle this part with path aliases! Note that for…

Build Better and Faster Bundles with TypeScript and Express using tsup
| | |

Build Better and Faster Bundles with TypeScript and Express using tsup

Introduction Forget about ts-node and nodemon, tsup is the way to go. It is a command-line tool that allows you to bundle Typescript code with performance in mind. It uses esbuild under the hood, which is a fast bundler and minifier. Get your entire typescript project bundled with a command that is as simple as…

How To Extend Express Request Interface in Typescript
| |

How To Extend Express Request Interface in Typescript

The problem You will likely be caught in this situation when you create middleware that processes the request data before it reaches the resource route. An example of this is JWT, where you will need to decode the token before every request, and put in the decoded data somewhere. In Javascript, it would have been…