Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alex1990/babel-plugin-log

A babel plugin to help to print useful debug log
https://github.com/alex1990/babel-plugin-log

Last synced: about 12 hours ago
JSON representation

A babel plugin to help to print useful debug log

Awesome Lists containing this project

README

        

# babel-plugin-log

A babel plugin to help to print useful debug log.

### Install

```sh
npm install babel-plugin-log
```

### Usage

Configure babel:

**`.babelrc`**

```json
{
"plugins": [
"babel-plugin-log"
]
}
```

### Example

**source code**

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

**generated code**

```js
console.log(1)
console.log("a", a);
console.log("a", a, "b", b, "c", c);
console.log("a + b", a + b);
```
### License

MIT