775ac7b58c
you must login with an BTP account in order to see the app |
||
---|---|---|
.. | ||
.npmignore | ||
.travis.yml | ||
index.js | ||
LICENSE | ||
package.json | ||
README.md | ||
test.js |
next-line
Iterator over lines in a string:
- Support different newline types: CRLF, LF, CR
- Support mixed newline formats in the same string
Installation
npm install next-line
Usage
var next = require('next-line')('foo\r\nbar\nbaz')
console.log(next()) // => foo
console.log(next()) // => bar
console.log(next()) // => baz
console.log(next()) // => null
License
MIT