Displaying 1 to 11 from 11 results

split-lines - Split lines into an array of lines

  •    Javascript

String to split.Preserve the line separator at the end of every line, except the last line, which will never contain one.

detect-newline - Detect the dominant newline character of a string

  •    Javascript

Returns detected newline or null when no newline character is found.Returns detected newline or \n when no newline character is found.




slice-lines - Fast algorithm for extracting a subset of lines from a string

  •    Javascript

Very efficient module for extracting a subset of lines from a string. Similar to str.slice(beginIndex, endIndex) except that the indexes are lines instead of bytes.

text-metrics - An efficient text measurement set for the browser

  •    Javascript

An lightweight & efficient text measurement set for the browser using canvas to prevent layout reflows. If you're using node, you can run npm install text-metrics.