Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/axilleasiv/babel-plugin-transform-custom-console

Replace console.log statements with a custom expression
https://github.com/axilleasiv/babel-plugin-transform-custom-console

babel babel-plugin

Last synced: 23 days ago
JSON representation

Replace console.log statements with a custom expression

Awesome Lists containing this project

README

        

# babel-plugin-transform-custom-console

> Replace console.log statements with a custom name, is not supposed to be used for general purposes

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

```json
{
"plugins": ["babel-plugin-transform-custom-console"]
}
```

### Via CLI

```sh
babel --plugins babel-plugin-transform-custom-console script.js
```

### Via Node API

```javascript
require('babel-core').transform('code', {
plugins: ['babel-plugin-transform-custom-console']
});
```