JSPM

next-line

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 422742
  • Score
    100M100P100Q164092F
  • License MIT

Iterator over lines in a string

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

Build status js-standard-style

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