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

https://github.com/unisharp/babel-plugin


https://github.com/unisharp/babel-plugin

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# babel-plugin-plugin

## Example

**In**

```js
// input code
```

**Out**

```js
"use strict";

// output code
```

## Installation

```sh
$ npm install babel-plugin-plugin
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

```json
{
"plugins": ["plugin"]
}
```

### Via CLI

```sh
$ babel --plugins plugin script.js
```

### Via Node API

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