0.1.0 • Published 6 years ago

es6-readline v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

es6-readline - read a file line by line in es6 async iterator

es6-readline package will return a line by line async iteractor of the given file path

Installation

npm i es6-readline

Usage

const readline = require('es6-readline')

(async () => {
    const lines = readline('path/to/file')

    for await (const line of lines) {
        console.log(line)
    }
})()