Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alex1990/babel-plugin-log
- Owner: Alex1990
- License: mit
- Created: 2019-10-30T16:24:31.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T23:58:08.000Z (almost 2 years ago)
- Last Synced: 2024-10-02T09:24:13.000Z (about 1 month ago)
- Language: JavaScript
- Size: 339 KB
- Stars: 1
- Watchers: 2
- 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