# babel-simple-replace-import-names

> Simple Babel plugin to replace import names.

Latest version **0.0.2** (published 2021-06-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-simple-replace-import-names
pnpm add babel-simple-replace-import-names
yarn add babel-simple-replace-import-names
bun add babel-simple-replace-import-names
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2021-06-19 |
| First published | 2021-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jorge Duarte Rodríguez |
| Maintainers | jduarter |
| Keywords | babel, replace, imports |

## Links

- npm: https://www.npmjs.com/package/babel-simple-replace-import-names
- Repository: https://github.com/jduarter/babel-simple-replace-import-names
- Homepage: https://github.com/jduarter/babel-simple-replace-import-names#readme
- Issues: https://github.com/jduarter/babel-simple-replace-import-names/issues
- npm.io page: https://npm.io/package/babel-simple-replace-import-names

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2021-06-19
- 0.0.1 — 2021-06-19

## README

# babel-simple-replace-import-names

Simple Babel plugin to replace import names.

## Install

```
npm install --save-dev babel-simple-replace-import-names
```

## Usage

Add the following to the `plugins` section of Babel config:

```
[
  'babel-simple-replace-import-names',
  {
    libraries: {
      'react-native-gesture-handler': '/just/a/test/with/absolutePaths/rngh.js',
      'react-native-reanimated': '/just/a/test/with/absolutePaths/rna.js'
    }
  }
]
```

Then Babel will replace all the code importing from the provided module names to the given path...

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