1.0.0 • Published 4 years ago
@nicer-toolbox/prevent-widows v1.0.0
Nicer Toolbox
preventWidows
Add as NBSP (non-breaking space) between the last to words to prevent unwanted word wraps.
import { preventWidows } from "nicer-toolbox";
// Basic Usage
preventWidows("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
1.0.0
4 years ago