New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

next-intercept-stdout

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-intercept-stdout

[![next-intercept-stdout](https://img.shields.io/npm/v/next-intercept-stdout?style=for-the-badge)](https://www.npmjs.com/package/next-intercept-stdout)

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7K
increased by0.24%
Maintainers
1
Weekly downloads
 
Created
Source

next-intercept-stdout

next-intercept-stdout

Next.js plugin to intercept stdout

Justification

  1. 💎 This module wraps intercept-stdout as the form of the Next.js plugin.
  2. 🙋🏽 Why wrap this module?
    1. I didn't want to call a function separate from other NextConfig values and plugins. It makes the action look suspicious and less coupled.
    2. In addition, intercept-stdout was last distributed about six years ago, so it seemed necessary to cover the implementation separately in case it no longer works.

Ignore Duplicate atom key warnings for Recoil

// next.config.js
const withInterceptStdout = require('next-intercept-stdout');

module.exports = withInterceptStdout(
  {
    reactStrictMode: true,
  },
  (text) => (text.includes('Duplicate atom key') ? '' : text),
);

Usage with the NextConfig Object

// next.config.js
const withInterceptStdout = require('next-intercept-stdout');
const withSvgr = require('@newhighsco/next-plugin-svgr');

module.exports = withInterceptStdout(
  withSvgr({
    reactStrictMode: true,
    svgrOptions: {},
  }),
  (text) => (text.includes('Duplicate atom key') ? '' : text),
);

Usage with other Next.js plugins

FAQs

Package last updated on 27 Jan 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc