npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mrathod05/nestjs-exception-handler

v2.0.2

Published

A CLI tool to integrate a global exception handler into your NestJS project for better error handling and formatting.

Readme

⚡ NestJS Exception Handler CLI

A simple CLI tool to help you handle exceptions globally in your NestJS application, promoting best practices and standardization.

📦 Installation

You can install the CLI globally or use it directly with npx.

npm install -g @mrathod05/nestjs-exception-handler

or

npx nestjs-exception-handler

🚀 Usage

Run the CLI in your project root:

npx nestjs-exception-handler

The CLI will help you integrate global exception handling by creating the necessary files for a standard setup.

Note: This tool does not install @nestjs/common or express automatically. It will remind you to install them yourself using your preferred package manager.

🛠️ What It Does

Guides you through setting up a global exception handler in your NestJS app

Promotes best practices for structured and consistent error handling

Configures response formats, stack traces, and logging for better debugging

Ensures you follow the proper NestJS structure for exception handling

🧪 Example

$ npx nestjs-exception-handler

⚙️  nestjs-exception-handler
Generate a customizable GlobalExceptionHandler for NestJS

✔ 👉 Enter target directory (e.g., src/common/filters) · test

✅ Global exception handler created at test/global-exception.filter.ts

📦 Required Dependencies:
Ensure the following packages are installed in your project:
- @nestjs/common → Core NestJS package for decorators and exception handling.
- express          → Web server framework used by NestJS under the hood.

📥 Install via:
npm: npm install @nestjs/common express
yarn: yarn add @nestjs/common express
pnpm: pnpm add @nestjs/common express

🧑‍💻 Developer

Meet Rathod