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

@mara/babel-plugin-console-prefix

Package Overview
Dependencies
Maintainers
6
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mara/babel-plugin-console-prefix

console 增加前缀

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-66.67%
Maintainers
6
Weekly downloads
 
Created
Source

@mara/babel-plugin-console-prefix

babel-loader 的插件,给项目的 console 增加前缀

Install

Using npm:

npm install --save-dev @mara/babel-plugin-console-prefix

or using yarn:

yarn add @mara/babel-plugin-console-prefix --dev

Usage

const BabelPluginConsolePrefix = require('@mara/babel-plugin-console-prefix')

{
  plugins: [
    [
      BabelPluginConsolePrefix,
      {
        // customPrefix: 'prefix',  // 自定义前缀,开发组件时建议将该值设置为组件名称
        exclude: ['sncLog'], // 排除某些文件,会用正则过滤
        showLocation: false // 是否显示行号 [index.js 4:13]
      }
    ]
  ]
}

Keywords

FAQs

Package last updated on 16 Sep 2021

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