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
- VersionDownloads (Last 7 Days)
- 1.0.6
0
Version History
Package Sidebar
Install
Weekly Downloads