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: 2 months ago
JSON representation
A babel plugin to help to print useful debug log
- Host: GitHub
- URL: https://github.com/alex1990/babel-plugin-log
- Owner: Alex1990
- License: mit
- Created: 2019-10-30T16:24:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T23:58:08.000Z (over 2 years ago)
- Last Synced: 2025-05-12T15:34:00.504Z (2 months ago)
- Language: JavaScript
- Size: 339 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
```
### LicenseMIT