# postcss-replace-overflow-wrap

> PostCSS plugin to replace overflow-wrap with word-wrap or optionally retain both declarations.

Latest version **4.0.0** (published 2020-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-replace-overflow-wrap
pnpm add postcss-replace-overflow-wrap
yarn add postcss-replace-overflow-wrap
bun add postcss-replace-overflow-wrap
```

## 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 | 4.0.0 |
| Published | 2020-09-16 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Matthias Müller |
| Maintainers | mattdimu |
| Keywords | postcss, css, postcss-plugin, overflow-wrap, word-wrap |

## Links

- npm: https://www.npmjs.com/package/postcss-replace-overflow-wrap
- Repository: https://github.com/MattDiMu/postcss-replace-overflow-wrap
- Issues: https://github.com/MattDiMu/postcss-replace-overflow-wrap/issues
- npm.io page: https://npm.io/package/postcss-replace-overflow-wrap

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 4.0.0 (latest) — 2020-09-16
- 3.0.0 — 2018-08-09
- 2.0.0 — 2017-05-29
- 1.0.0 — 2016-05-17

## README

# PostCSS Replace Overflow Wrap [![CSS Standard Status][css-img]][css] [![Build Status][ci-img]][ci]

[PostCSS] plugin to replace overflow-wrap with word-wrap. May optionally retain both declarations.

[PostCSS]: https://github.com/postcss/postcss
[css-img]: https://jonathantneal.github.io/css-db/badge/css-text-overflow-wrap-property.svg
[css]:     https://jonathantneal.github.io/css-db/#css-text-overflow-wrap-property
[ci-img]:  https://travis-ci.org/MattDiMu/postcss-replace-overflow-wrap.svg
[ci]:      https://travis-ci.org/MattDiMu/postcss-replace-overflow-wrap


```css
/* before */
.foo {
    overflow-wrap: break-word;
}

/* after */
.foo {
    word-wrap: break-word;
}
```

```css
/* before, when the option { method: 'copy' } is passed */
.foo {
    overflow-wrap: break-word;
}

/* after */
.foo {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
```

### Installation
`npm install --save-dev postcss postcss-replace-overflow-wrap`

For Postcss 7 or earlier use Version 3 or earlier:

`npm install --save-dev postcss-replace-overflow-wrap@3`


## Usage

```js
/* default usage, with no options (method = replace) */
postcss([ require('postcss-replace-overflow-wrap') ])
```

```js
/* add word-wrap, but keep overflow-wrap */
postcss([ require('postcss-replace-overflow-wrap') ])({ method: 'copy' })
```
See [PostCSS] docs for examples for your environment.

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