# @mara/babel-plugin-console-prefix

> console 增加前缀

Latest version **1.0.2** (published 2021-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mara/babel-plugin-console-prefix
pnpm add @mara/babel-plugin-console-prefix
yarn add @mara/babel-plugin-console-prefix
bun add @mara/babel-plugin-console-prefix
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-09-16 |
| First published | 2021-09-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | mingyu6 |
| Maintainers | limy1997, lq0611, xiaojue, vv314, happybang, tingyu3 |
| Keywords | babel-plugin, console, prefix, console-prefix |

## Links

- npm: https://www.npmjs.com/package/@mara/babel-plugin-console-prefix
- Repository: https://gitlab.weibo.cn:2222/SINA_MFE_COMPONENTS/mara
- npm.io page: https://npm.io/package/@mara/babel-plugin-console-prefix

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2021-09-16

## README

# `@mara/babel-plugin-console-prefix`

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

## Install

Using npm:

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

or using yarn:

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

## Usage

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

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

---
_Source: https://npm.io/package/@mara/babel-plugin-console-prefix · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
