index.js
function hyphenateText(dom, forceHyphenateAllChildren) {
    if (dom.childNodes !== undefined) {
      dom.childNodes.forEach(function(node) {
        if (node.nodeName === '#text' && !isSkippable(node) && (forceHyphenateAllChildren || isPresent(options.elements, dom.tagName))) {
          node.value = hypher.hyphenateText(node.value);
        } else {
          hyphenateText(node, isPresent(options.elements, dom.tagName));
        }
      });
    }

    return dom;
  }
function hyphenateText(dom, forceHyphenateAllChildren) {
    if (dom.childNodes !== undefined) {
      dom.childNodes.forEach(function(node) {
        if (node.nodeName === '#text' && !isSkippable(node) && (forceHyphenateAllChildren || isPresent(options.elements, dom.tagName))) {
          node.value = hypher.hyphenateText(node.value);
        } else {
          hyphenateText(node, isPresent(options.elements, dom.tagName));
        }
      });
    }

    return dom;
  }
function hyphenateText ( dom , forceHyphenateAllChildren ) { if ( dom . childNodes !== undefined ) { dom . childNodes . forEach ( function ( node ) { if ( node . nodeName === '#text' && ! isSkippable ( node ) && ( forceHyphenateAllChildren || isPresent ( options . elements , dom . tagName ) ) ) { node . value = hypher . hyphenateText ( node . value ) ; } else { hyphenateText ( node , isPresent ( options . elements , dom . tagName ) ) ; } } ) ; } return dom ; }
Traverses throught parsed DOM, and hyphenate text nodes

@param {String} domString
@return {String}
Traverses throught parsed DOM and hyphenate text nodes