next-line
Iterator over lines in a string
Last updated 11 years ago by watson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install next-line 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.0                                ...           latest (11 years ago)

2 Versions

  • 1.1.0                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 3
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE