cat-bookmarker/assets/node_modules/babel-plugin-syntax-flow/README.md

36 lines
374 B
Markdown
Raw Permalink Normal View History

2024-03-10 18:52:04 +00:00
# babel-plugin-syntax-flow
## Installation
```sh
$ npm install babel-plugin-syntax-flow
```
## Usage
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"plugins": ["syntax-flow"]
}
```
### Via CLI
```sh
$ babel --plugins syntax-flow script.js
```
### Via Node API
```javascript
require("babel-core").transform("code", {
plugins: ["syntax-flow"]
});
```