stream-readline

1.0.0 • Public • Published

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

/stream-readline/

    Package Sidebar

    Install

    npm i stream-readline

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.25 kB

    Total Files

    4

    Last publish

    Collaborators

    • bloomca