diff --git a/docs/assets/search.js b/docs/assets/search.js index 9410d5a..df4af11 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = JSON.parse("{\"rows\":[{\"kind\":2,\"name\":\"index\",\"url\":\"modules/index.html\",\"classes\":\"\"},{\"kind\":128,\"name\":\"LineWrap\",\"url\":\"classes/index.LineWrap.html\",\"classes\":\"\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"OVERFLOW_VISIBLE\",\"url\":\"classes/index.LineWrap.html#OVERFLOW_VISIBLE\",\"classes\":\"\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"OVERFLOW_CLIP\",\"url\":\"classes/index.LineWrap.html#OVERFLOW_CLIP\",\"classes\":\"\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"OVERFLOW_ANYWHERE\",\"url\":\"classes/index.LineWrap.html#OVERFLOW_ANYWHERE\",\"classes\":\"\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"DEFAULT_OPTIONS\",\"url\":\"classes/index.LineWrap.html#DEFAULT_OPTIONS\",\"classes\":\"\",\"parent\":\"index.LineWrap\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/index.LineWrap.html#constructor\",\"classes\":\"\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"#graphemes\",\"url\":\"classes/index.LineWrap.html#_graphemes\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"#rules\",\"url\":\"classes/index.LineWrap.html#_rules\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"#opts\",\"url\":\"classes/index.LineWrap.html#_opts\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"classes/index.LineWrap.html#_opts.__type\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts\"},{\"kind\":1024,\"name\":\"ellipsis\",\"url\":\"classes/index.LineWrap.html#_opts.__type.ellipsis\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"example7\",\"url\":\"classes/index.LineWrap.html#_opts.__type.example7\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"firstCol\",\"url\":\"classes/index.LineWrap.html#_opts.__type.firstCol\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"hyphen\",\"url\":\"classes/index.LineWrap.html#_opts.__type.hyphen\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"indent\",\"url\":\"classes/index.LineWrap.html#_opts.__type.indent\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"indentChar\",\"url\":\"classes/index.LineWrap.html#_opts.__type.indentChar\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"indentEmpty\",\"url\":\"classes/index.LineWrap.html#_opts.__type.indentEmpty\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"indentFirst\",\"url\":\"classes/index.LineWrap.html#_opts.__type.indentFirst\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"isNewline\",\"url\":\"classes/index.LineWrap.html#_opts.__type.isNewline\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"locale\",\"url\":\"classes/index.LineWrap.html#_opts.__type.locale\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"newline\",\"url\":\"classes/index.LineWrap.html#_opts.__type.newline\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"newlineReplacement\",\"url\":\"classes/index.LineWrap.html#_opts.__type.newlineReplacement\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"overflow\",\"url\":\"classes/index.LineWrap.html#_opts.__type.overflow\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"verbose\",\"url\":\"classes/index.LineWrap.html#_opts.__type.verbose\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"width\",\"url\":\"classes/index.LineWrap.html#_opts.__type.width\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"escape\",\"url\":\"classes/index.LineWrap.html#_opts.__type.escape\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"#firstIndent\",\"url\":\"classes/index.LineWrap.html#_firstIndent\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"#indent\",\"url\":\"classes/index.LineWrap.html#_indent\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"#indentWidth\",\"url\":\"classes/index.LineWrap.html#_indentWidth\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"#replacementWidth\",\"url\":\"classes/index.LineWrap.html#_replacementWidth\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"#enderWidth\",\"url\":\"classes/index.LineWrap.html#_enderWidth\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"#workingWidth\",\"url\":\"classes/index.LineWrap.html#_workingWidth\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":2048,\"name\":\"#graphemeCount\",\"url\":\"classes/index.LineWrap.html#_graphemeCount\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":2048,\"name\":\"#fragments\",\"url\":\"classes/index.LineWrap.html#_fragments\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":2048,\"name\":\"#chunks\",\"url\":\"classes/index.LineWrap.html#_chunks\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":2048,\"name\":\"lines\",\"url\":\"classes/index.LineWrap.html#lines\",\"classes\":\"\",\"parent\":\"index.LineWrap\"},{\"kind\":2048,\"name\":\"wrap\",\"url\":\"classes/index.LineWrap.html#wrap\",\"classes\":\"\",\"parent\":\"index.LineWrap\"},{\"kind\":4194304,\"name\":\"EscapeString\",\"url\":\"types/index.EscapeString.html\",\"classes\":\"\",\"parent\":\"index\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/index.EscapeString.html#__type\",\"classes\":\"\",\"parent\":\"index.EscapeString\"},{\"kind\":2,\"name\":\"spacebreaker\",\"url\":\"modules/spacebreaker.html\",\"classes\":\"\"},{\"kind\":128,\"name\":\"SpaceBreaker\",\"url\":\"classes/spacebreaker.SpaceBreaker.html\",\"classes\":\"\",\"parent\":\"spacebreaker\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/spacebreaker.SpaceBreaker.html#constructor\",\"classes\":\"\",\"parent\":\"spacebreaker.SpaceBreaker\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,33.787]],[\"comment/0\",[]],[\"name/1\",[1,33.787]],[\"comment/1\",[]],[\"name/2\",[2,33.787]],[\"comment/2\",[]],[\"name/3\",[3,33.787]],[\"comment/3\",[]],[\"name/4\",[4,33.787]],[\"comment/4\",[]],[\"name/5\",[5,33.787]],[\"comment/5\",[]],[\"name/6\",[6,28.679]],[\"comment/6\",[]],[\"name/7\",[7,33.787]],[\"comment/7\",[]],[\"name/8\",[8,33.787]],[\"comment/8\",[]],[\"name/9\",[9,33.787]],[\"comment/9\",[]],[\"name/10\",[10,28.679]],[\"comment/10\",[]],[\"name/11\",[11,33.787]],[\"comment/11\",[]],[\"name/12\",[12,33.787]],[\"comment/12\",[]],[\"name/13\",[13,33.787]],[\"comment/13\",[]],[\"name/14\",[14,33.787]],[\"comment/14\",[]],[\"name/15\",[15,28.679]],[\"comment/15\",[]],[\"name/16\",[16,33.787]],[\"comment/16\",[]],[\"name/17\",[17,33.787]],[\"comment/17\",[]],[\"name/18\",[18,33.787]],[\"comment/18\",[]],[\"name/19\",[19,33.787]],[\"comment/19\",[]],[\"name/20\",[20,33.787]],[\"comment/20\",[]],[\"name/21\",[21,33.787]],[\"comment/21\",[]],[\"name/22\",[22,33.787]],[\"comment/22\",[]],[\"name/23\",[23,33.787]],[\"comment/23\",[]],[\"name/24\",[24,33.787]],[\"comment/24\",[]],[\"name/25\",[25,33.787]],[\"comment/25\",[]],[\"name/26\",[26,33.787]],[\"comment/26\",[]],[\"name/27\",[27,33.787]],[\"comment/27\",[]],[\"name/28\",[15,28.679]],[\"comment/28\",[]],[\"name/29\",[28,33.787]],[\"comment/29\",[]],[\"name/30\",[29,33.787]],[\"comment/30\",[]],[\"name/31\",[30,33.787]],[\"comment/31\",[]],[\"name/32\",[31,33.787]],[\"comment/32\",[]],[\"name/33\",[32,33.787]],[\"comment/33\",[]],[\"name/34\",[33,33.787]],[\"comment/34\",[]],[\"name/35\",[34,33.787]],[\"comment/35\",[]],[\"name/36\",[35,33.787]],[\"comment/36\",[]],[\"name/37\",[36,33.787]],[\"comment/37\",[]],[\"name/38\",[37,33.787]],[\"comment/38\",[]],[\"name/39\",[10,28.679]],[\"comment/39\",[]],[\"name/40\",[38,28.679]],[\"comment/40\",[]],[\"name/41\",[38,28.679]],[\"comment/41\",[]],[\"name/42\",[6,28.679]],[\"comment/42\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":10,\"name\":{\"10\":{},\"39\":{}},\"comment\":{}}],[\"chunks\",{\"_index\":34,\"name\":{\"35\":{}},\"comment\":{}}],[\"constructor\",{\"_index\":6,\"name\":{\"6\":{},\"42\":{}},\"comment\":{}}],[\"default_options\",{\"_index\":5,\"name\":{\"5\":{}},\"comment\":{}}],[\"ellipsis\",{\"_index\":11,\"name\":{\"11\":{}},\"comment\":{}}],[\"enderwidth\",{\"_index\":30,\"name\":{\"31\":{}},\"comment\":{}}],[\"escape\",{\"_index\":26,\"name\":{\"26\":{}},\"comment\":{}}],[\"escapestring\",{\"_index\":37,\"name\":{\"38\":{}},\"comment\":{}}],[\"example7\",{\"_index\":12,\"name\":{\"12\":{}},\"comment\":{}}],[\"firstcol\",{\"_index\":13,\"name\":{\"13\":{}},\"comment\":{}}],[\"firstindent\",{\"_index\":27,\"name\":{\"27\":{}},\"comment\":{}}],[\"fragments\",{\"_index\":33,\"name\":{\"34\":{}},\"comment\":{}}],[\"graphemecount\",{\"_index\":32,\"name\":{\"33\":{}},\"comment\":{}}],[\"graphemes\",{\"_index\":7,\"name\":{\"7\":{}},\"comment\":{}}],[\"hyphen\",{\"_index\":14,\"name\":{\"14\":{}},\"comment\":{}}],[\"indent\",{\"_index\":15,\"name\":{\"15\":{},\"28\":{}},\"comment\":{}}],[\"indentchar\",{\"_index\":16,\"name\":{\"16\":{}},\"comment\":{}}],[\"indentempty\",{\"_index\":17,\"name\":{\"17\":{}},\"comment\":{}}],[\"indentfirst\",{\"_index\":18,\"name\":{\"18\":{}},\"comment\":{}}],[\"indentwidth\",{\"_index\":28,\"name\":{\"29\":{}},\"comment\":{}}],[\"index\",{\"_index\":0,\"name\":{\"0\":{}},\"comment\":{}}],[\"isnewline\",{\"_index\":19,\"name\":{\"19\":{}},\"comment\":{}}],[\"lines\",{\"_index\":35,\"name\":{\"36\":{}},\"comment\":{}}],[\"linewrap\",{\"_index\":1,\"name\":{\"1\":{}},\"comment\":{}}],[\"locale\",{\"_index\":20,\"name\":{\"20\":{}},\"comment\":{}}],[\"newline\",{\"_index\":21,\"name\":{\"21\":{}},\"comment\":{}}],[\"newlinereplacement\",{\"_index\":22,\"name\":{\"22\":{}},\"comment\":{}}],[\"opts\",{\"_index\":9,\"name\":{\"9\":{}},\"comment\":{}}],[\"overflow\",{\"_index\":23,\"name\":{\"23\":{}},\"comment\":{}}],[\"overflow_anywhere\",{\"_index\":4,\"name\":{\"4\":{}},\"comment\":{}}],[\"overflow_clip\",{\"_index\":3,\"name\":{\"3\":{}},\"comment\":{}}],[\"overflow_visible\",{\"_index\":2,\"name\":{\"2\":{}},\"comment\":{}}],[\"replacementwidth\",{\"_index\":29,\"name\":{\"30\":{}},\"comment\":{}}],[\"rules\",{\"_index\":8,\"name\":{\"8\":{}},\"comment\":{}}],[\"spacebreaker\",{\"_index\":38,\"name\":{\"40\":{},\"41\":{}},\"comment\":{}}],[\"verbose\",{\"_index\":24,\"name\":{\"24\":{}},\"comment\":{}}],[\"width\",{\"_index\":25,\"name\":{\"25\":{}},\"comment\":{}}],[\"workingwidth\",{\"_index\":31,\"name\":{\"32\":{}},\"comment\":{}}],[\"wrap\",{\"_index\":36,\"name\":{\"37\":{}},\"comment\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file +window.searchData = JSON.parse("{\"rows\":[{\"kind\":2,\"name\":\"index\",\"url\":\"modules/index.html\",\"classes\":\"\"},{\"kind\":128,\"name\":\"LineWrap\",\"url\":\"classes/index.LineWrap.html\",\"classes\":\"\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"OVERFLOW_VISIBLE\",\"url\":\"classes/index.LineWrap.html#OVERFLOW_VISIBLE\",\"classes\":\"\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"OVERFLOW_CLIP\",\"url\":\"classes/index.LineWrap.html#OVERFLOW_CLIP\",\"classes\":\"\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"OVERFLOW_ANYWHERE\",\"url\":\"classes/index.LineWrap.html#OVERFLOW_ANYWHERE\",\"classes\":\"\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"DEFAULT_OPTIONS\",\"url\":\"classes/index.LineWrap.html#DEFAULT_OPTIONS\",\"classes\":\"\",\"parent\":\"index.LineWrap\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/index.LineWrap.html#constructor\",\"classes\":\"\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"#stringWidth\",\"url\":\"classes/index.LineWrap.html#_stringWidth\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"#rules\",\"url\":\"classes/index.LineWrap.html#_rules\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"#opts\",\"url\":\"classes/index.LineWrap.html#_opts\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"classes/index.LineWrap.html#_opts.__type\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts\"},{\"kind\":1024,\"name\":\"ellipsis\",\"url\":\"classes/index.LineWrap.html#_opts.__type.ellipsis\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"example7\",\"url\":\"classes/index.LineWrap.html#_opts.__type.example7\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"firstCol\",\"url\":\"classes/index.LineWrap.html#_opts.__type.firstCol\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"hyphen\",\"url\":\"classes/index.LineWrap.html#_opts.__type.hyphen\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"indent\",\"url\":\"classes/index.LineWrap.html#_opts.__type.indent\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"indentChar\",\"url\":\"classes/index.LineWrap.html#_opts.__type.indentChar\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"indentEmpty\",\"url\":\"classes/index.LineWrap.html#_opts.__type.indentEmpty\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"indentFirst\",\"url\":\"classes/index.LineWrap.html#_opts.__type.indentFirst\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"isCJK\",\"url\":\"classes/index.LineWrap.html#_opts.__type.isCJK\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"isNewline\",\"url\":\"classes/index.LineWrap.html#_opts.__type.isNewline\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"locale\",\"url\":\"classes/index.LineWrap.html#_opts.__type.locale\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"newline\",\"url\":\"classes/index.LineWrap.html#_opts.__type.newline\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"newlineReplacement\",\"url\":\"classes/index.LineWrap.html#_opts.__type.newlineReplacement\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"overflow\",\"url\":\"classes/index.LineWrap.html#_opts.__type.overflow\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"verbose\",\"url\":\"classes/index.LineWrap.html#_opts.__type.verbose\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"width\",\"url\":\"classes/index.LineWrap.html#_opts.__type.width\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"escape\",\"url\":\"classes/index.LineWrap.html#_opts.__type.escape\",\"classes\":\"\",\"parent\":\"index.LineWrap.#opts.__type\"},{\"kind\":1024,\"name\":\"#firstIndent\",\"url\":\"classes/index.LineWrap.html#_firstIndent\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"#indent\",\"url\":\"classes/index.LineWrap.html#_indent\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"#indentWidth\",\"url\":\"classes/index.LineWrap.html#_indentWidth\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"#replacementWidth\",\"url\":\"classes/index.LineWrap.html#_replacementWidth\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"#enderWidth\",\"url\":\"classes/index.LineWrap.html#_enderWidth\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":1024,\"name\":\"#workingWidth\",\"url\":\"classes/index.LineWrap.html#_workingWidth\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":262144,\"name\":\"isCJK\",\"url\":\"classes/index.LineWrap.html#isCJK-1\",\"classes\":\"\",\"parent\":\"index.LineWrap\"},{\"kind\":262144,\"name\":\"locale\",\"url\":\"classes/index.LineWrap.html#locale-1\",\"classes\":\"\",\"parent\":\"index.LineWrap\"},{\"kind\":2048,\"name\":\"#fragments\",\"url\":\"classes/index.LineWrap.html#_fragments\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":2048,\"name\":\"#chunks\",\"url\":\"classes/index.LineWrap.html#_chunks\",\"classes\":\"tsd-is-private\",\"parent\":\"index.LineWrap\"},{\"kind\":2048,\"name\":\"lines\",\"url\":\"classes/index.LineWrap.html#lines\",\"classes\":\"\",\"parent\":\"index.LineWrap\"},{\"kind\":2048,\"name\":\"wrap\",\"url\":\"classes/index.LineWrap.html#wrap\",\"classes\":\"\",\"parent\":\"index.LineWrap\"},{\"kind\":4194304,\"name\":\"EscapeString\",\"url\":\"types/index.EscapeString.html\",\"classes\":\"\",\"parent\":\"index\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/index.EscapeString.html#__type\",\"classes\":\"\",\"parent\":\"index.EscapeString\"},{\"kind\":2,\"name\":\"spacebreaker\",\"url\":\"modules/spacebreaker.html\",\"classes\":\"\"},{\"kind\":128,\"name\":\"SpaceBreaker\",\"url\":\"classes/spacebreaker.SpaceBreaker.html\",\"classes\":\"\",\"parent\":\"spacebreaker\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/spacebreaker.SpaceBreaker.html#constructor\",\"classes\":\"\",\"parent\":\"spacebreaker.SpaceBreaker\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,34.232]],[\"comment/0\",[]],[\"name/1\",[1,34.232]],[\"comment/1\",[]],[\"name/2\",[2,34.232]],[\"comment/2\",[]],[\"name/3\",[3,34.232]],[\"comment/3\",[]],[\"name/4\",[4,34.232]],[\"comment/4\",[]],[\"name/5\",[5,34.232]],[\"comment/5\",[]],[\"name/6\",[6,29.124]],[\"comment/6\",[]],[\"name/7\",[7,34.232]],[\"comment/7\",[]],[\"name/8\",[8,34.232]],[\"comment/8\",[]],[\"name/9\",[9,34.232]],[\"comment/9\",[]],[\"name/10\",[10,29.124]],[\"comment/10\",[]],[\"name/11\",[11,34.232]],[\"comment/11\",[]],[\"name/12\",[12,34.232]],[\"comment/12\",[]],[\"name/13\",[13,34.232]],[\"comment/13\",[]],[\"name/14\",[14,34.232]],[\"comment/14\",[]],[\"name/15\",[15,29.124]],[\"comment/15\",[]],[\"name/16\",[16,34.232]],[\"comment/16\",[]],[\"name/17\",[17,34.232]],[\"comment/17\",[]],[\"name/18\",[18,34.232]],[\"comment/18\",[]],[\"name/19\",[19,29.124]],[\"comment/19\",[]],[\"name/20\",[20,34.232]],[\"comment/20\",[]],[\"name/21\",[21,29.124]],[\"comment/21\",[]],[\"name/22\",[22,34.232]],[\"comment/22\",[]],[\"name/23\",[23,34.232]],[\"comment/23\",[]],[\"name/24\",[24,34.232]],[\"comment/24\",[]],[\"name/25\",[25,34.232]],[\"comment/25\",[]],[\"name/26\",[26,34.232]],[\"comment/26\",[]],[\"name/27\",[27,34.232]],[\"comment/27\",[]],[\"name/28\",[28,34.232]],[\"comment/28\",[]],[\"name/29\",[15,29.124]],[\"comment/29\",[]],[\"name/30\",[29,34.232]],[\"comment/30\",[]],[\"name/31\",[30,34.232]],[\"comment/31\",[]],[\"name/32\",[31,34.232]],[\"comment/32\",[]],[\"name/33\",[32,34.232]],[\"comment/33\",[]],[\"name/34\",[19,29.124]],[\"comment/34\",[]],[\"name/35\",[21,29.124]],[\"comment/35\",[]],[\"name/36\",[33,34.232]],[\"comment/36\",[]],[\"name/37\",[34,34.232]],[\"comment/37\",[]],[\"name/38\",[35,34.232]],[\"comment/38\",[]],[\"name/39\",[36,34.232]],[\"comment/39\",[]],[\"name/40\",[37,34.232]],[\"comment/40\",[]],[\"name/41\",[10,29.124]],[\"comment/41\",[]],[\"name/42\",[38,29.124]],[\"comment/42\",[]],[\"name/43\",[38,29.124]],[\"comment/43\",[]],[\"name/44\",[6,29.124]],[\"comment/44\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":10,\"name\":{\"10\":{},\"41\":{}},\"comment\":{}}],[\"chunks\",{\"_index\":34,\"name\":{\"37\":{}},\"comment\":{}}],[\"constructor\",{\"_index\":6,\"name\":{\"6\":{},\"44\":{}},\"comment\":{}}],[\"default_options\",{\"_index\":5,\"name\":{\"5\":{}},\"comment\":{}}],[\"ellipsis\",{\"_index\":11,\"name\":{\"11\":{}},\"comment\":{}}],[\"enderwidth\",{\"_index\":31,\"name\":{\"32\":{}},\"comment\":{}}],[\"escape\",{\"_index\":27,\"name\":{\"27\":{}},\"comment\":{}}],[\"escapestring\",{\"_index\":37,\"name\":{\"40\":{}},\"comment\":{}}],[\"example7\",{\"_index\":12,\"name\":{\"12\":{}},\"comment\":{}}],[\"firstcol\",{\"_index\":13,\"name\":{\"13\":{}},\"comment\":{}}],[\"firstindent\",{\"_index\":28,\"name\":{\"28\":{}},\"comment\":{}}],[\"fragments\",{\"_index\":33,\"name\":{\"36\":{}},\"comment\":{}}],[\"hyphen\",{\"_index\":14,\"name\":{\"14\":{}},\"comment\":{}}],[\"indent\",{\"_index\":15,\"name\":{\"15\":{},\"29\":{}},\"comment\":{}}],[\"indentchar\",{\"_index\":16,\"name\":{\"16\":{}},\"comment\":{}}],[\"indentempty\",{\"_index\":17,\"name\":{\"17\":{}},\"comment\":{}}],[\"indentfirst\",{\"_index\":18,\"name\":{\"18\":{}},\"comment\":{}}],[\"indentwidth\",{\"_index\":29,\"name\":{\"30\":{}},\"comment\":{}}],[\"index\",{\"_index\":0,\"name\":{\"0\":{}},\"comment\":{}}],[\"iscjk\",{\"_index\":19,\"name\":{\"19\":{},\"34\":{}},\"comment\":{}}],[\"isnewline\",{\"_index\":20,\"name\":{\"20\":{}},\"comment\":{}}],[\"lines\",{\"_index\":35,\"name\":{\"38\":{}},\"comment\":{}}],[\"linewrap\",{\"_index\":1,\"name\":{\"1\":{}},\"comment\":{}}],[\"locale\",{\"_index\":21,\"name\":{\"21\":{},\"35\":{}},\"comment\":{}}],[\"newline\",{\"_index\":22,\"name\":{\"22\":{}},\"comment\":{}}],[\"newlinereplacement\",{\"_index\":23,\"name\":{\"23\":{}},\"comment\":{}}],[\"opts\",{\"_index\":9,\"name\":{\"9\":{}},\"comment\":{}}],[\"overflow\",{\"_index\":24,\"name\":{\"24\":{}},\"comment\":{}}],[\"overflow_anywhere\",{\"_index\":4,\"name\":{\"4\":{}},\"comment\":{}}],[\"overflow_clip\",{\"_index\":3,\"name\":{\"3\":{}},\"comment\":{}}],[\"overflow_visible\",{\"_index\":2,\"name\":{\"2\":{}},\"comment\":{}}],[\"replacementwidth\",{\"_index\":30,\"name\":{\"31\":{}},\"comment\":{}}],[\"rules\",{\"_index\":8,\"name\":{\"8\":{}},\"comment\":{}}],[\"spacebreaker\",{\"_index\":38,\"name\":{\"42\":{},\"43\":{}},\"comment\":{}}],[\"stringwidth\",{\"_index\":7,\"name\":{\"7\":{}},\"comment\":{}}],[\"verbose\",{\"_index\":25,\"name\":{\"25\":{}},\"comment\":{}}],[\"width\",{\"_index\":26,\"name\":{\"26\":{}},\"comment\":{}}],[\"workingwidth\",{\"_index\":32,\"name\":{\"33\":{}},\"comment\":{}}],[\"wrap\",{\"_index\":36,\"name\":{\"39\":{}},\"comment\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file diff --git a/docs/classes/index.LineWrap.html b/docs/classes/index.LineWrap.html index 6870d48..b5db9d4 100644 --- a/docs/classes/index.LineWrap.html +++ b/docs/classes/index.LineWrap.html @@ -21,7 +21,7 @@
Optional
Returns LineWrap
+Static
Static
OVERFLOW_Static
Static
OVERFLOW_Static
Static
OVERFLOW_Static
Private
#enderPrivate
#graphemesPrivate
#indentPrivate
Private
#indentLength of indent in graphemes
+Length of indent in display cells
Private
#optsIf indentFirst is false, how many columns was the first line already indented? If NaN, use the indent width, - in graphemes. If indentFirst is true, this is ignored.
+ in display cells. If indentFirst is true, this is ignored.If specified, override CJK detection by locale.
+Regular expression that
finds newlines for replacement with newlineReplacement
. Ensure you
@@ -256,20 +260,25 @@
Private
#replacementWidth of #opts.newlineReplacement, in graphemes
+Width of #opts.newlineReplacement, in display cells
Private
#rulesPrivate
#stringPrivate
#workingPrivate
Did we determin that we are in a CJK context? Useful for testing.
+The calculated locale. Useful for testing.
+Private
#fragmentsPrivate
#graphemeWrap lines using Unicode UAX #14 line breaking rules.
npm install @cto.af/linewrap
+A command line interface is available: @cto.af/linewrap-cli
import {LineWrap} from '@cto.af/linewrap'
const w = new LineWrap()
w.wrap('Lorem ipsum dolor sit amet...') // A string, wrapped to your console length
for (const line of w.lines('Lorem ipsum dolor sit amet...')) {
// `line` does not have a newline at the end
}
Full API docs are available.
@@ -145,6 +146,7 @@
Width of #opts.ellipsis or #opts.hyphen, in graphemes
+Width of #opts.ellipsis or #opts.hyphen, in display cells
Private
#firstPrivate