# babel-plugin-transform-flow-enums

> Babel transform for Flow Enums.

Latest version **0.0.2** (published 2021-09-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-transform-flow-enums
pnpm add babel-plugin-transform-flow-enums
yarn add babel-plugin-transform-flow-enums
bun add babel-plugin-transform-flow-enums
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score; popular repo.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2021-09-13 |
| First published | 2020-12-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 22282 |
| Maintainers | gkz, flowtype |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-transform-flow-enums
- Repository: https://github.com/facebook/flow
- npm.io page: https://npm.io/package/babel-plugin-transform-flow-enums

## Dependencies (1)

- [@babel/plugin-syntax-flow](https://npm.io/package/@babel/plugin-syntax-flow.md) ^7.12.1

## Recent versions

- 0.0.2 (latest) — 2021-09-13
- 0.0.1 — 2020-12-10

## README

babel-plugin-transform-flow-enums
=================================

This Babel transform turns [Flow Enums](https://flow.org/en/docs/enums/) `EnumDeclaration` nodes into calls to the [Flow Enums runtime](https://www.npmjs.com/package/flow-enums-runtime).

This plugin requires the [Flow syntax plugin](https://babeljs.io/docs/en/babel-plugin-syntax-flow), with `{enums: true}` enabled.

Read more about how to [enable Flow Enums in your project](https://flow.org/en/docs/enums/enabling-enums/).

## Options
- `getRuntime`:
  - Optional function. Called with [Babel types](https://babeljs.io/docs/en/babel-types) as the first argument.
  - If supplied, will be called to produce a Babel AST node which will be a reference to the Flow Enums runtime.
  - If omitted, `require('flow-enums-runtime')` will be used.

---
_Source: https://npm.io/package/babel-plugin-transform-flow-enums · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
