# babel-plugin-data-stylename

> Rewrites `styleName` attributes to `data-stylename`.

Latest version **0.1.1** (published 2017-12-12) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-data-stylename
pnpm add babel-plugin-data-stylename
yarn add babel-plugin-data-stylename
bun add babel-plugin-data-stylename
```

## 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.1.1 |
| Published | 2017-12-12 |
| First published | 2017-04-26 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rich Churcher |
| Maintainers | richchurcher |
| Keywords | babel, plugin, css, modules, stylename, jsx, react |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-data-stylename
- Repository: https://github.com/Hylozoic/babel-plugin-data-stylename
- Homepage: https://github.com/Hylozoic/babel-plugin-data-stylename#readme
- Issues: https://github.com/Hylozoic/babel-plugin-data-stylename/issues
- npm.io page: https://npm.io/package/babel-plugin-data-stylename

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2017-12-12
- 0.1.0 — 2017-04-26

## README

# babel-plugin-data-stylename

Replace all `styleName` attributes with `data-stylename`.


## Install

```shell
npm install babel-plugin-data-stylename --save-dev
```

or

```shell
yarn add babel-plugin-data-stylename --dev
```

## Use

To use this in a test environment, in your Babel config (shown here as a `package.json` property):

```json
  "babel": {
    "env": {
      "test": {
        "plugins": [
          [ "data-stylename" ]
        ]
      }
    }
  }
```

Obviously, your test runner will need to be configured to use Babel. Note that Jest agressively caches transpiled code, and might need to be run with a `--no-cache` for you to see the change after installing the plugin.

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