1.0.3 • Published 2 years ago

pretty-break v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

pretty-break

When a title is too long to fit into its container, pretty-break breaks it nicely in to lines of roughly equal length.

Example:

This title is too long to fit inside its container

Becomes:

This title is too long to fit inside its container

Install

npm i --save pretty-break

Usage

import { prettybreak } from 'pretty-break';

const targets = document.getElementsByClassName('break-me-nicely');

for (var i = 0; i < targets.length; i++) {
  prettyBreak(targets[i]);
}
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago