# babel-plugin-transform-console-log-self

> Makes console.log print its arguments in textual form

Latest version **0.1.1** (published 2017-03-11) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2017-03-11 |
| First published | 2017-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Adrian Toncean |
| Maintainers | adrianton3 |
| Keywords | babel, plugin, console, log, debug |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-transform-console-log-self
- Repository: https://github.com/adrianton3/babel-plugin-transform-console-log-self
- Homepage: https://github.com/adrianton3/babel-plugin-transform-console-log-self#readme
- Issues: https://github.com/adrianton3/babel-plugin-transform-console-log-self/issues
- npm.io page: https://npm.io/package/babel-plugin-transform-console-log-self

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2017-03-11
- 0.1.0 — 2017-03-11

## README

# babel-plugin-transform-console-log-self

Makes console.log calls print their arguments in textual form.

Example

```js
const a = 11, b = 22, c = 33, d = 44
console.log(a, b, c + d)
```

prints `11 22 77`. The plugin replaces the `console.log` above with 

```js
console.log("a", a, "b", b, "c + d", c + d)
```

which prints the much more informative `a 11 b 22 c + d 77` 


## Installation

```bash
npm install babel-plugin-transform-console-log-self
```

## Usage

### Via `.babelrc` (Recommended)

```js
{
  "plugins": ["transform-console-log-self"]
}
```

### Via CLI

```sh
babel --plugins transform-console-log-self script.js
```

### Via Node API

```js
require('babel').transform('code', {
	plugins: ['transform-console-log-self']
})
```

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