1.0.0 • Published 5 years ago

stream-readline v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Stream Readline

This package provides a stream to read file line by line, so every chunk of data is a string.

Installation

npm install --save stream-readline

Requirements

Node.js 8+.

Usage

const { createReadlineStream } = require('stream-readline');

const stream = createReadlineStream("input.txt");

stream.on("data", chunk => {
  console.log("===============");
  console.log(chunk); // your string
});

License

MIT