Package Exports
- next-line
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (next-line) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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