1.0.6 • Published 8 years ago

read-each-line v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

9 years ago

1.0.3

9 years ago