big-json-reader
Read json from large files by using native fs read calls.
Require require('big-json-reader')
Install
npm install big-json-reader
API
Create new instance of JsonReader
let reader = filepath
Start reading the file
reader;
The first argument expects a function which should return a promise.
The reader stops reading the file after it has found a valid json, and waits for the promise to fulfill.
It counts a json a process successfully if the promise was resolved. Even if the promise is rejected, the reader continues to read the file.
Usage
let JsonReader = ;/* provide a full path to the file to be read */let reader = require; reader;