1.0.1 • Published 7 years ago

liner v1.0.1

Weekly downloads
61
License
-
Repository
github
Last release
7 years ago

node-liner

Build Status

This is a simple Node.js module that reads lines from files and streams. There are other similar modules, but I believe they are more complicated than they need to be.

Example

const Liner = require('liner');
const liner = new Liner('./story.txt');

liner.on('readable', () => {
  while (true) {
    const line = liner.read();
    if (line === null) break;
    // Do something with line.
    console.log(line);
  }
});

liner.on('error', err => console.error(err));

liner.on('end', () => process.exit(0));
1.0.1

7 years ago

1.0.0

7 years ago

0.3.3

11 years ago

0.3.2

11 years ago

0.3.1

11 years ago

0.3.0

11 years ago

0.2.0

12 years ago

0.1.0

12 years ago

0.0.6

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago