remote-read-by-line
NodeJs - Read remote file line by line using streams
Install package
npm install remote-read-by-line
1. Initialize
Add package. Create object of RemoteReadByLine and pass remote file url to read. you can also pass saveFilePath if you want to save remote file. saveFilePath is optional
const RemoteReadByLine = ;let read = url: "<FILE-URL>" saveFilePath: "[OPTIONAL]";
2. Set listener to receive line
read
3. Set listener for end of the file.
read
4. last and final step start reading remote file...
read;
That's it!