# postcss-class-rename-postcss8

> PostCSS plugin simply rename class without hassle

Latest version **1.0.2** (published 2022-01-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-class-rename-postcss8
pnpm add postcss-class-rename-postcss8
yarn add postcss-class-rename-postcss8
bun add postcss-class-rename-postcss8
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-01-13 |
| First published | 2022-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yuehpeng Liu |
| Maintainers | reaxa |
| Keywords | postcss, postcss-plugins, postcss-plugin, webpack, webpack-loader, rollup, css, rename |

## Links

- npm: https://www.npmjs.com/package/postcss-class-rename-postcss8
- Repository: https://github.com/nshusr/postcss-class-rename
- Homepage: https://github.com/nshusr/postcss-class-rename#readme
- Issues: https://github.com/nshusr/postcss-class-rename/issues
- npm.io page: https://npm.io/package/postcss-class-rename-postcss8

## Recent versions

- 1.0.2 (latest) — 2022-01-13
- 1.0.1 — 2022-01-13

## README

# postcss-class-rename-postcss8

[PostCSS][PostCSS] plugin to replace class name by giving key-value mapping in options

## Installation

```
npm install postcss-class-rename-postcss8 --save-dev
```

## Usage

### rollup

```
postcss({
    plugins: [
      require('autoprefixer'),
      require('postcss-class-rename-postcss8')({
        // replace 'button-' in class name to 'btn-'
        button-: 'btn-',
        // All options are treated as replacement mapping
        ...
      })
    ]
  }),

```

### postcss.config.js

```
const rename = require('postcss-class-rename-postcss8');

module.exports = ({ env }) => {
  plugins: [
    rename({
      // All options are treated as replacement mapping
      button-: 'btn-',
      ...
    })
  ]
}
```

[postcss]: https://github.com/postcss/postcss

---
_Source: https://npm.io/package/postcss-class-rename-postcss8 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
