# text-balancer

> Plugin to blanace text

Latest version **1.0.5** (published 2017-04-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install text-balancer
pnpm add text-balancer
yarn add text-balancer
bun add text-balancer
```

## 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.5 |
| Published | 2017-04-26 |
| First published | 2016-11-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Michael Beswetherick |
| Maintainers | liddiard, mbeswetherick |

## Links

- npm: https://www.npmjs.com/package/text-balancer
- npm.io page: https://npm.io/package/text-balancer

## Recent versions

- 1.0.5 (latest) — 2017-04-26
- 1.0.4 — 2016-11-18
- 1.0.3 — 2016-11-18
- 1.0.1 — 2016-11-18
- 1.0.0 — 2016-11-18

## README

# text-balancer

Text-balancer is a javascript module that seeks to eliminate typographic widows from text. It does this by setting the max-width of the dom node to the threshold that it would spill onto another line.

### How to run it

```
import textBalancer from 'text-balancer';

// Run it when you want to with any set of selectors
textBalancer.balanceText('.headline, .interactive-leadin, #horse-god');

// OR: Just run it and it will look for anything with the balance-text class
textBalancer.balanceText();
```

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