1.1.2 • Published 3 years ago

@simmo/widower v1.1.2

Weekly downloads
39
License
MIT
Repository
github
Last release
3 years ago

Widower

npm downloads

Often when working with responsive designs, text will wrap leaving a widowed word on a new line. This JavaScript function replaces the last space with a non breaking space.

Install

npm i @simmo/widower

Usage

import widower from 'widow-killer';

widower('Hello world');
// => Hello\u00A0world

MIT © Mike Simmonds

1.1.2

3 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago