Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/axilleasiv/babel-plugin-transform-custom-console
- Owner: axilleasiv
- Created: 2018-07-09T10:53:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-21T18:55:32.000Z (almost 4 years ago)
- Last Synced: 2024-11-08T10:51:44.473Z (3 months ago)
- Topics: babel, babel-plugin
- Language: JavaScript
- Homepage:
- Size: 63.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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']
});
```