https://github.com/unstubbable/babel-plugin-remove-console-babel-5
Babel 5 plugin to remove console.* calls
https://github.com/unstubbable/babel-plugin-remove-console-babel-5
Last synced: 6 months ago
JSON representation
Babel 5 plugin to remove console.* calls
- Host: GitHub
- URL: https://github.com/unstubbable/babel-plugin-remove-console-babel-5
- Owner: unstubbable
- Created: 2016-01-22T11:04:29.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-22T11:04:32.000Z (almost 10 years ago)
- Last Synced: 2024-10-25T06:28:47.373Z (about 1 year ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# babel-plugin-remove-console-babel-5
Babel 5 plugin to remove console.* calls
> This preservses the npm package [babel-plugin-remove-console](https://www.npmjs.com/package/babel-plugin-remove-console) for Babel 5 users.
> Former source location: [https://github.com/babel-plugins/babel-plugin-remove-console]()
## Installation
```sh
$ npm install babel-plugin-remove-console-babel-5
```
## Usage
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"plugins": ["remove-console-babel-5"]
}
```
### Via CLI
```sh
$ babel --plugins remove-console-babel-5 script.js
```
### Via Node API
```javascript
require("babel-core").transform("code", {
plugins: ["remove-console-babel-5"]
});
```