Supplies a range of useful json data for testing.
A range of different test JSON test data sources for use in database testing.
Install via npm:
$ npm install json-testdata
Just require the module to get a big array of JSON test data sources from npm:
var db = ;var testData = data;var batch = testData;db;
Do the above stuff for you:
var db = ;var batch = leveldata;db;
You can get the data as a stream too:
If you want to put a delay between each
data event, then you can pass that
through the readStream function:
// 50ms delay between data events;