Horunge.js
Easily prevent typographic orphans.
Horunge is the Swedish equivalent for orphans when we’re talking typography. Supports CommonJS, AMD or browser globals.
Install
NPM
npm install horunge
Manual install
Download the production version or the development version.
Usage
Browser globals
This is a sample heading
CommonJS
; const heading = 'This is a sample heading';const fixedHeading = ;
Api
horunge(string, [opt = 2]);
Param | Description |
---|---|
string | String to fix |
opt | Number of words to keep at same row (optional) (default: 2) |