count-lines

Count the lines in a string, works with windows carriage returns or unix style newlines.

Browse on unpkg