MCPcopy Index your code
hub / github.com/davidpaulsson/horunge.js

github.com/davidpaulsson/horunge.js @1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0.0 ↗ · + Follow
0 symbols 0 edges 2 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Horunge.js Build Status

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

<h1>This is a sample heading</h1>

<script src="https://github.com/davidpaulsson/horunge.js/raw/1.0.0/horunge.min.js"></script>
<script>
  const headlines = document.querySelectorAll("h1")
  headlines.forEach(function(headline) {
    headline.innerHTML = horunge(headline.innerHTML)
  });
</script>

CommonJS

import horunge from 'horunge';

const heading = 'This is a sample heading';
const fixedHeading = horunge(heading);

Api

horunge(string, [opt = 2]);

Param Description
string String to fix
opt Number of words to keep at same row (optional) (default: 2)

List of releases List of contributors

Core symbols most depended-on inside this repo

Shape

For agents

$ claude mcp add horunge.js \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page