read-line

0.1.2 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    1
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i read-line

Weekly Downloads

1

Version

0.1.2

License

none

Last publish

Collaborators

  • jordancalder