36 lines
334 B
Markdown
36 lines
334 B
Markdown
# FULL_NAME
|
|
|
|
DESCRIPTION
|
|
|
|
## Installation
|
|
|
|
```sh
|
|
$ npm install FULL_NAME
|
|
```
|
|
|
|
## Usage
|
|
|
|
### Via `.babelrc` (Recommended)
|
|
|
|
**.babelrc**
|
|
|
|
```json
|
|
{
|
|
"plugins": ["NAME"]
|
|
}
|
|
```
|
|
|
|
### Via CLI
|
|
|
|
```sh
|
|
$ babel --plugins NAME script.js
|
|
```
|
|
|
|
### Via Node API
|
|
|
|
```javascript
|
|
require("babel-core").transform("code", {
|
|
plugins: ["NAME"]
|
|
});
|
|
```
|