Count the lines in a string, works with windows carriage returns or unix style newlines.
npm install count-lines> Count the lines in a string, works with windows carriage returns or unix style newlines.
``bash`
npm i count-lines --save
`js
var count = require('count-lines');
console.log(count('a\nb\nc'));
//=> '3'
console.log(count('a\r\nb\r\nc'));
//=> '3'
``
Jon Schlinkert
+ github/jonschlinkert
+ twitter/jonschlinkert
*
_This file was generated by verb-cli on July 13, 2014._