package
Count the lines in a string, works with windows carriage returns or unix style newlines.
npm install count-linesGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.

Count the lines in a string, works with windows carriage returns or unix style newlines.
npm i count-lines --savevar count = require('count-lines');
console.log(count('a\nb\nc'));
//=> '3'
console.log(count('a\r\nb\r\nc'));
//=> '3'Jon Schlinkert
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on July 13, 2014.