Skip to content

watson/next-line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Iterator over lines in a string

Resources

License

Stars

Watchers

Forks

Packages

No packages published