# babel-plugin-prefix-console-log

> This ia a plugin that will append to the console.log a prefix specified in the settings

Latest version **1.1.0** (published 2018-12-04) · 0 weekly downloads

## Install

```sh
npm install babel-plugin-prefix-console-log
pnpm add babel-plugin-prefix-console-log
yarn add babel-plugin-prefix-console-log
bun add babel-plugin-prefix-console-log
```

## 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.1.0 |
| Published | 2018-12-04 |
| First published | 2018-12-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | tldacewicz@gmail.com |
| Maintainers | tomldac |
| Keywords | babel, plugin, babel-plugin, prefix-console |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-prefix-console-log
- npm.io page: https://npm.io/package/babel-plugin-prefix-console-log

## 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.1.0 (latest) — 2018-12-04
- 1.0.0 — 2018-12-02

## README

# babel-plugin-prefix-console-log
Travis-ci.com [![Build Status](https://travis-ci.com/tomldac/babel-plugin-prefix-console-log.svg?branch=master)](https://travis-ci.com/tomldac/babel-plugin-prefix-console-log)
Travis-ci.org [![Build Status](https://travis-ci.org/tomldac/babel-plugin-prefix-console-log.svg?branch=master)](https://travis-ci.org/tomldac/babel-plugin-prefix-console-log)

This is a library that allows you to append to any amount of arguments in the console log. a Prefix.
The default prefix is 'Bonify Rocks' where as you can specify in the .babelrc file the option prefix which
will append the prefix that you would like to you console.log.

## For additional information on babel plugins read the following
Read babel plugin handbook -> https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md

Try http://astexplorer.net/#/Pcw9baefXI for a visual understanding.

Special thank you to https://github.com/supreetpal/babel-plugin-boilerplate for the boilerplate work done. Thank you.


## Example

**In**

```js
console.log('Hello');
```

**Out**

```js
console.log('Bonify RocksHello');
```

## Installation

```sh
$ npm install babel-plugin-prefix-console-log
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

```json
{
  "plugins": ["prefix-console-log", {
    "prefix": "Whatever you want "
  }]
}
```

### Via CLI

```sh
$ babel --plugins prefix-console-log script.js
```

### Via Node API

```javascript
require("@babel/core").transform("code", {
  plugins: ["prefix-console-log"]
});
```

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