# babel-plugin-extract-export-names

> Extract export names

Latest version **2.0.0-next.3** (published 2020-07-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-extract-export-names
pnpm add babel-plugin-extract-export-names
yarn add babel-plugin-extract-export-names
bun add babel-plugin-extract-export-names
```

## Health

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

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

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.0-next.3 |
| Published | 2020-07-17 |
| First published | 2020-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 19813 |
| Author | John Otander |
| Maintainers | johno |
| Keywords | mdx, markdown, react, jsx, remark, babel |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-extract-export-names
- Repository: https://github.com/mdx-js/mdx
- Homepage: https://mdxjs.com
- Issues: https://github.com/mdx-js/mdx/issues
- Funding: https://opencollective.com/unified
- npm.io page: https://npm.io/package/babel-plugin-extract-export-names

## Dependencies (1)

- [@babel/helper-plugin-utils](https://npm.io/package/@babel/helper-plugin-utils.md) 7.10.4

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 2.0.0-next.3 (latest) — 2020-07-17
- 2.0.0-next.8 (next) — 2020-09-18
- 2.0.0-next.7 — 2020-07-30
- 2.0.0-next.6 — 2020-07-27
- 2.0.0-next.5 — 2020-07-27
- 2.0.0-next.4 — 2020-07-22

## README

# `babel-plugin-extract-export-names`

Babel plugin that extracts all variable names from
export statements.Used by the [MDX](https://mdxjs.com)
pragma.

## Installation

```sh
yarn add babel-plugin-extract-export-names
```

## Usage

```js
const babel = require('@babel/core')

const BabelPluginExtractExportNames = require('babel-plugin-extract-export-names')

const jsx = `
export const foo = 'bar'
export const [A] = [1]
`

const plugin = new BabelPluginExtractExportNames()

const result = babel.transform(jsx, {
  configFile: false,
  plugins: [plugin.plugin]
})

console.log(plugin.state.names)
```

## License

MIT

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