read-each-line

1.0.6 • Public • Published

read-each-line

Read file line by line, synchronously.

Install

npm install read-each-line

Example

var readEachLine = require('read-each-line')
 
readEachLine('test.txt', 'utf8', function(line) {
  console.log(line)
})

Encoding can optionally be omitted, in which case it will default to utf8:

readEachLine('test.txt', function(line) {
  console.log(line)
})

Credits

Author: Geza Kovacs

Based on readLineSync

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.6
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.6
    0
  • 1.0.5
    0
  • 1.0.4
    0
  • 1.0.3
    0

Package Sidebar

Install

npm i read-each-line

Weekly Downloads

0

Version

1.0.6

License

MIT

Last publish

Collaborators

  • geza