tru_readfile
A node module that reads a file line by line.
- Start your task with a an array of all the lines
- Run async tasks on each line then resume the job
License
ISC
Installation
npm install tru_readfile --save// oryarn add tru_readfile
build source with tsc
Usage
Javascript
var ReadFile = ; // get all lines path: 'myFile.txt' { console; } { throw err; }; // or perform an async task on each line then resume file loading path: 'myFile.txt' { // async task ; } { console; } { throw err; };
TypeScript
; // get all linesnew ReadFile; // or perform an async task on each line then resume file loadingnew ReadFile;