Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

read-line Build Status

An implementation of readline for Nodejs

Getting Started

Install the module with: npm install read-line

var read_line = require('read-line')
var fs = require('fs')

var input = fs.createReadStream(__dirname + '/test-file.txt')
input.pipe(read_line)
read_line.on('readable', function () {
     var line
     while (line = read_line.read()) {
          console.log(line)
     }
})

License

Copyright (c) 2015 Sterling Jordan Calder
Licensed under the MIT license.