UNPKG

@hugsmidjan/hyphen

Version:

Text hyphenation in Javascript. - Fork with improved icelandic hyphenation based on https://repository.clarin.is/repository/xmlui/handle/20.500.12537/86

12 lines (10 loc) 379 B
var createHyphenator = require("./hyphen.js"); module.exports = function (patterns) { return { hyphenate: createHyphenator(patterns, { async: true }), hyphenateHTML: createHyphenator(patterns, { async: true, html: true }), hyphenateHTMLSync: createHyphenator(patterns, { html: true }), hyphenateSync: createHyphenator(patterns), patterns: patterns }; };