readar
Read text file to array of lines. Easy, sync, utf8 only, no configs required.
Why?
Because fs
is too low-level for such kind of tasks.
Install
npm i readar
Usage
const readar = ; ; // ['line1', 'line2', 'line3']; // Error EISDIR: illegal operation on a directory, read; // Error ENOENT: no such file or directory, open \'path/to/nonExistent/file\'
License
MIT