https://github.com/unisharp/babel-plugin
https://github.com/unisharp/babel-plugin
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/unisharp/babel-plugin
- Owner: UniSharp
- Created: 2018-08-06T09:08:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-26T04:19:39.000Z (over 4 years ago)
- Last Synced: 2025-01-10T12:49:19.654Z (over 1 year ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 10
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"]
});
```