
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

The name comes from the animal, Meerkat, which is always extremely focused on its environment in order to protect its colony, and CAT, the UNIX utility which outputs text.
This is a NestJS middleware that serves a simple yet missing functionality in NestJS : logging HTTP requests and errors, like Morgan with Express. It offers several features like customization and detailed error logging
npm i meercat
Then, in your main app.module.ts
import { MeercatLoggingMiddleware } from 'meercat';
// Declare the middleware on all routes
export class AppModule implements NestModule {
configure(consumer: MiddlewareConsumer) {
consumer.apply(MeercatLoggingMiddleware).forRoutes('*');
}
}
By default, Meercat uses the default NestJS logger, only handling the timestamp a bit differently.
You can override this behaviour by providing the token MEERCAT_LOGGER with the desired logger.
You can customize the logger behaviour by providing the token MEERCAT_OPTIONS with a MeercatOptions object :
export type MeercatOptions = {
name?: string;
logErrorDetails?: boolean; // default true
blacklisted?: string[]
};
name : Customize the logger name
logErrorDetails : logs the query, body and user agent to the console when the request status >= 400. log level: debug
blacklisted : a list of keywords, if the keyword is included in the req.baseUrl, the request won't be logged (can be used to prevent clutter)
Example :
providers: [
{
provide: MEERCAT_OPTIONS,
useValue: { logErrorDetails: false } as MeercatOptions,
},
],
FAQs
A simple yet effective request logger middleware for Nest JS
We found that meercat demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.